changed arguments of the modescripptevents to strings

This commit is contained in:
kremsy
2017-04-13 22:59:41 +02:00
parent cffbc6cd89
commit 7835f89eae
3 changed files with 21 additions and 10 deletions

View File

@ -90,6 +90,9 @@ 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);
//Triggers a WarmUp Status Callback
$this->maniaControl->getModeScriptEventManager()->getWarmupStatus();
$this->updateCancelVoteMenuItem();
$this->updateWarmUpMenuItems();
}
@ -121,7 +124,7 @@ class Commands implements CallbackListener, CommandListener, ManialinkPageAnswer
/**
* Handle the WarmupStatus Callback, and removes or adds the Menu Items for extending / Stopping warmup
*
* @param $warmupEnabled
* @param \ManiaControl\Callbacks\Structures\Common\StatusCallbackStructure $structure
*/
public function handleWarmUpStatus(StatusCallbackStructure $structure) {
if ($structure->isAvailable()) {