exception for not in scriptmode
This commit is contained in:
parent
6eca102233
commit
ff812b8126
@ -93,7 +93,13 @@ class Commands implements CallbackListener, CommandListener, ManialinkPageAnswer
|
|||||||
$this->maniaControl->getAuthenticationManager()->definePermissionLevel(self::SETTING_PERMISSION_HANDLE_WARMUP, AuthenticationManager::AUTH_LEVEL_MODERATOR);
|
$this->maniaControl->getAuthenticationManager()->definePermissionLevel(self::SETTING_PERMISSION_HANDLE_WARMUP, AuthenticationManager::AUTH_LEVEL_MODERATOR);
|
||||||
|
|
||||||
//Triggers a WarmUp Status Callback
|
//Triggers a WarmUp Status Callback
|
||||||
|
try{
|
||||||
$this->maniaControl->getModeScriptEventManager()->getWarmupStatus();
|
$this->maniaControl->getModeScriptEventManager()->getWarmupStatus();
|
||||||
|
}catch(GameModeException $e){
|
||||||
|
$this->maniaControl->getChat()->sendErrorToAdmins("Not in script mode");
|
||||||
|
Logger::logError("Not in Script mode");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$this->updateCancelVoteMenuItem();
|
$this->updateCancelVoteMenuItem();
|
||||||
$this->updateWarmUpMenuItems();
|
$this->updateWarmUpMenuItems();
|
||||||
|
Loading…
Reference in New Issue
Block a user