diff --git a/core/Server/Commands.php b/core/Server/Commands.php index 606ce58d..ee0cc98a 100644 --- a/core/Server/Commands.php +++ b/core/Server/Commands.php @@ -93,7 +93,13 @@ class Commands implements CallbackListener, CommandListener, ManialinkPageAnswer $this->maniaControl->getAuthenticationManager()->definePermissionLevel(self::SETTING_PERMISSION_HANDLE_WARMUP, AuthenticationManager::AUTH_LEVEL_MODERATOR); //Triggers a WarmUp Status Callback - $this->maniaControl->getModeScriptEventManager()->getWarmupStatus(); + try{ + $this->maniaControl->getModeScriptEventManager()->getWarmupStatus(); + }catch(GameModeException $e){ + $this->maniaControl->getChat()->sendErrorToAdmins("Not in script mode"); + Logger::logError("Not in Script mode"); + } + $this->updateCancelVoteMenuItem(); $this->updateWarmUpMenuItems();