Changed chatmessages Queue
This commit is contained in:
parent
c5c54e2f8c
commit
d9ba67947a
@ -203,7 +203,7 @@ class QueuePlugin implements CallbackListener, CommandListener, ManialinkPageAns
|
||||
public function handleManiaLinkAnswerRemove(array $chatCallback, Player $player) {
|
||||
$this->removePlayerFromQueue($player);
|
||||
$this->showJoinQueueWidget($player);
|
||||
$this->maniaControl->chat->sendChat('$z$s$090[Queue] $fff'.$player->nickname.'$z$s$090 has left the queue!');
|
||||
$this->maniaControl->chat->sendChat('$z$s$090[Queue] $<$fff'.$player->nickname.'$> has left the queue!');
|
||||
}
|
||||
|
||||
private function moveFirstPlayerToPlay() {
|
||||
@ -220,14 +220,14 @@ class QueuePlugin implements CallbackListener, CommandListener, ManialinkPageAns
|
||||
if(isset($this->spectators[$player->login])) unset($this->spectators[$player->login]);
|
||||
$this->removePlayerFromQueue($player->login);
|
||||
$this->showPlayWidget($player);
|
||||
$this->maniaControl->chat->sendChat('$z$s$090[Queue] $fff'.$player->nickname.'$z$s$090 has a free spot and is now playing!');
|
||||
$this->maniaControl->chat->sendChat('$z$s$090[Queue] $<$fff'.$player->nickname.'$> has a free spot and is now playing!');
|
||||
}
|
||||
}
|
||||
|
||||
private function addPlayerToQueue(Player $player) {
|
||||
if($this->maniaControl->settingManager->getSetting($this, self::QUEUE_MAX) > count($this->queue)) {
|
||||
$this->queue[count($this->queue)] = $player;
|
||||
$this->maniaControl->chat->sendChat('$z$s$090[Queue] $fff'.$player->nickname.'$z$s$090 just joined the queue!');
|
||||
$this->maniaControl->chat->sendChat('$z$s$090[Queue] $<$fff'.$player->nickname.'$> just joined the queue!');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user