From 526a3e81d4354b8c4d07950c1516b93c4d7b1ece Mon Sep 17 00:00:00 2001 From: kremsy Date: Sat, 8 Apr 2017 15:06:14 +0200 Subject: [PATCH] temp endwarmup command fix --- core/Server/Commands.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/Server/Commands.php b/core/Server/Commands.php index 1367fc18..510b426d 100644 --- a/core/Server/Commands.php +++ b/core/Server/Commands.php @@ -92,6 +92,8 @@ class Commands implements CallbackListener, CommandListener, ManialinkPageAnswer $this->maniaControl->getAuthenticationManager()->definePermissionLevel(self::SETTING_PERMISSION_CANCEL_VOTE, AuthenticationManager::AUTH_LEVEL_MODERATOR); $this->maniaControl->getAuthenticationManager()->definePermissionLevel(self::SETTING_PERMISSION_HANDLE_WARMUP, AuthenticationManager::AUTH_LEVEL_MODERATOR); + $this->handleWarmUpStatus(true); //TODO dynamic + $this->updateCancelVoteMenuItem(); $this->updateWarmUpMenuItems(); } @@ -211,10 +213,12 @@ class Commands implements CallbackListener, CommandListener, ManialinkPageAnswer } try { - $this->maniaControl->getClient()->triggerModeScriptEvent('WarmUp_Stop', ''); + $this->maniaControl->getClient()->triggerModeScriptEvent('WarmUp_Stop', ''); //TODO remove $this->maniaControl->getChat()->sendInformation($player->getEscapedNickname() . ' stopped the WarmUp!'); } catch (GameModeException $e) { } + + $this->maniaControl->getModeScriptEventManager()->stopManiaPlanetWarmup(); } /**