Changed chatmessages Queue

This commit is contained in:
Max Klaversma 2014-01-24 21:06:05 +01:00 committed by Steffen Schröder
parent c5c54e2f8c
commit d9ba67947a

View File

@ -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!');
}
}