diff --git a/application/core/UpdateManager.php b/application/core/UpdateManager.php index 4cf18dbf..502c77e2 100644 --- a/application/core/UpdateManager.php +++ b/application/core/UpdateManager.php @@ -374,6 +374,11 @@ class UpdateManager implements CallbackListener, CommandListener { return true; } + /** + * Function checks if ManiaControl has sufficient access to files to update them. + * + * @return bool + */ private function checkPermissions() { $writableDirectories = array('core/', 'plugins/'); $path = str_replace('core', '', realpath(dirname(__FILE__))); diff --git a/application/plugins/QueuePlugin.php b/application/plugins/QueuePlugin.php index e52db040..7bae1344 100644 --- a/application/plugins/QueuePlugin.php +++ b/application/plugins/QueuePlugin.php @@ -202,6 +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!'); } private function moveFirstPlayerToPlay() { @@ -218,12 +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!'); } } 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!'); } }