Changed Queue messages

This commit is contained in:
Max Klaversma 2014-01-24 20:08:32 +01:00 committed by Steffen Schröder
parent 3aa8eabb54
commit a08707c602

View File

@ -202,7 +202,7 @@ class QueuePlugin implements CallbackListener, CommandListener, ManialinkPageAns
public function handleManiaLinkAnswerRemove(array $chatCallback, Player $player) {
$this->removePlayerFromQueue($player);
$this->showJoinQueueWidget($player);
$this->maniaControl->chat->sendChat('$090[Queue] $fff'.$player->nickname.'$z$s$090 has left the queue!');
$this->maniaControl->chat->sendChat('$z$s$090[Queue] $fff'.$player->nickname.'$z$s$090 has left the queue!');
}
private function moveFirstPlayerToPlay() {
@ -219,14 +219,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('$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.'$z$s$090 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('$090[Queue] $fff'.$player->nickname.'$z$s$090 has joined the queue!');
$this->maniaControl->chat->sendChat('$z$s$090[Queue] $fff'.$player->nickname.'$z$s$090 has joined the queue!');
}
}