Changed Queue messages
This commit is contained in:
parent
3aa8eabb54
commit
a08707c602
@ -202,7 +202,7 @@ class QueuePlugin implements CallbackListener, CommandListener, ManialinkPageAns
|
|||||||
public function handleManiaLinkAnswerRemove(array $chatCallback, Player $player) {
|
public function handleManiaLinkAnswerRemove(array $chatCallback, Player $player) {
|
||||||
$this->removePlayerFromQueue($player);
|
$this->removePlayerFromQueue($player);
|
||||||
$this->showJoinQueueWidget($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() {
|
private function moveFirstPlayerToPlay() {
|
||||||
@ -219,14 +219,14 @@ class QueuePlugin implements CallbackListener, CommandListener, ManialinkPageAns
|
|||||||
if(isset($this->spectators[$player->login])) unset($this->spectators[$player->login]);
|
if(isset($this->spectators[$player->login])) unset($this->spectators[$player->login]);
|
||||||
$this->removePlayerFromQueue($player->login);
|
$this->removePlayerFromQueue($player->login);
|
||||||
$this->showPlayWidget($player);
|
$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) {
|
private function addPlayerToQueue(Player $player) {
|
||||||
if($this->maniaControl->settingManager->getSetting($this, self::QUEUE_MAX) > count($this->queue)) {
|
if($this->maniaControl->settingManager->getSetting($this, self::QUEUE_MAX) > count($this->queue)) {
|
||||||
$this->queue[count($this->queue)] = $player;
|
$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!');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user