exception for not in scriptmode

This commit is contained in:
kremsy 2017-05-13 11:57:21 +02:00
parent 6eca102233
commit ff812b8126

View File

@ -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();