define main rights on playeractions
This commit is contained in:
		| @@ -112,8 +112,8 @@ class ManiaControl implements CommandListener { | |||||||
| 		$this->chat = new Chat($this); | 		$this->chat = new Chat($this); | ||||||
| 		$this->commandManager = new CommandManager($this); | 		$this->commandManager = new CommandManager($this); | ||||||
| 		$this->server = new Server($this); | 		$this->server = new Server($this); | ||||||
| 		$this->playerManager = new PlayerManager($this); |  | ||||||
| 		$this->authenticationManager = new AuthenticationManager($this); | 		$this->authenticationManager = new AuthenticationManager($this); | ||||||
|  | 		$this->playerManager = new PlayerManager($this); | ||||||
| 		$this->mapManager = new MapManager($this); | 		$this->mapManager = new MapManager($this); | ||||||
| 		$this->configurator = new Configurator($this); | 		$this->configurator = new Configurator($this); | ||||||
| 		$this->pluginManager = new PluginManager($this); | 		$this->pluginManager = new PluginManager($this); | ||||||
|   | |||||||
| @@ -68,7 +68,6 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener { | |||||||
| 		$this->maniaControl->callbackManager->registerCallbackListener(MapManager::CB_MAPS_UPDATED, $this, 'updateWidget'); | 		$this->maniaControl->callbackManager->registerCallbackListener(MapManager::CB_MAPS_UPDATED, $this, 'updateWidget'); | ||||||
| 		$this->maniaControl->callbackManager->registerCallbackListener(MapManager::CB_KARMA_UPDATED, $this, 'updateWidget'); | 		$this->maniaControl->callbackManager->registerCallbackListener(MapManager::CB_KARMA_UPDATED, $this, 'updateWidget'); | ||||||
| 		$this->maniaControl->callbackManager->registerCallbackListener(MapManager::CB_BEGINMAP, $this, 'updateWidget'); | 		$this->maniaControl->callbackManager->registerCallbackListener(MapManager::CB_BEGINMAP, $this, 'updateWidget'); | ||||||
| 		// TODO not working yet |  | ||||||
|  |  | ||||||
| 		$this->maniaControl->manialinkManager->registerManialinkPageAnswerListener(self::ACTION_SEARCH_MAPNAME, $this, 'showManiaExchangeList'); | 		$this->maniaControl->manialinkManager->registerManialinkPageAnswerListener(self::ACTION_SEARCH_MAPNAME, $this, 'showManiaExchangeList'); | ||||||
| 		$this->maniaControl->manialinkManager->registerManialinkPageAnswerListener(self::ACTION_SEARCH_AUTHOR, $this, 'showManiaExchangeList'); | 		$this->maniaControl->manialinkManager->registerManialinkPageAnswerListener(self::ACTION_SEARCH_AUTHOR, $this, 'showManiaExchangeList'); | ||||||
|   | |||||||
| @@ -34,10 +34,10 @@ class PlayerActions { | |||||||
| 	const SETTING_PERMISSION_FORCE_PLAYER_PLAY = 'Force Player to Play'; | 	const SETTING_PERMISSION_FORCE_PLAYER_PLAY = 'Force Player to Play'; | ||||||
| 	const SETTING_PERMISSION_FORCE_PLAYER_TEAM = 'Force Player to Team'; | 	const SETTING_PERMISSION_FORCE_PLAYER_TEAM = 'Force Player to Team'; | ||||||
| 	const SETTING_PERMISSION_FORCE_PLAYER_SPEC = 'Force Player to Spec'; | 	const SETTING_PERMISSION_FORCE_PLAYER_SPEC = 'Force Player to Spec'; | ||||||
| 	const SETTING_PERMISSION_MUTE_PLAYER       = 'Mute PLayer'; | 	const SETTING_PERMISSION_MUTE_PLAYER       = 'Mute Player'; | ||||||
| 	const SETTING_PERMISSION_WARN_PLAYER       = 'Warn PLayer'; | 	const SETTING_PERMISSION_WARN_PLAYER       = 'Warn Player'; | ||||||
| 	const SETTING_PERMISSION_KICK_PLAYER       = 'Kick PLayer'; | 	const SETTING_PERMISSION_KICK_PLAYER       = 'Kick Player'; | ||||||
| 	const SETTING_PERMISSION_BAN_PLAYER        = 'Ban PLayer'; | 	const SETTING_PERMISSION_BAN_PLAYER        = 'Ban Player'; | ||||||
|  |  | ||||||
| 	/** | 	/** | ||||||
| 	 * Private Properties | 	 * Private Properties | ||||||
| @@ -59,7 +59,7 @@ class PlayerActions { | |||||||
| 		$this->maniaControl->authenticationManager->definePermissionLevel(self::SETTING_PERMISSION_MUTE_PLAYER, AuthenticationManager::AUTH_LEVEL_MODERATOR); | 		$this->maniaControl->authenticationManager->definePermissionLevel(self::SETTING_PERMISSION_MUTE_PLAYER, AuthenticationManager::AUTH_LEVEL_MODERATOR); | ||||||
| 		$this->maniaControl->authenticationManager->definePermissionLevel(self::SETTING_PERMISSION_FORCE_PLAYER_PLAY, AuthenticationManager::AUTH_LEVEL_MODERATOR); | 		$this->maniaControl->authenticationManager->definePermissionLevel(self::SETTING_PERMISSION_FORCE_PLAYER_PLAY, AuthenticationManager::AUTH_LEVEL_MODERATOR); | ||||||
| 		$this->maniaControl->authenticationManager->definePermissionLevel(self::SETTING_PERMISSION_FORCE_PLAYER_TEAM, AuthenticationManager::AUTH_LEVEL_MODERATOR); | 		$this->maniaControl->authenticationManager->definePermissionLevel(self::SETTING_PERMISSION_FORCE_PLAYER_TEAM, AuthenticationManager::AUTH_LEVEL_MODERATOR); | ||||||
| 		$this->maniaControl->authenticationManager->definePermissionLevel(self::SETTING_PERMISSION_FORCE_PLAYER_PLAY, AuthenticationManager::AUTH_LEVEL_MODERATOR); | 		$this->maniaControl->authenticationManager->definePermissionLevel(self::SETTING_PERMISSION_FORCE_PLAYER_SPEC, AuthenticationManager::AUTH_LEVEL_MODERATOR); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	/** | 	/** | ||||||
|   | |||||||
| @@ -360,7 +360,7 @@ class PlayerList implements ManialinkPageAnswerListener, CallbackListener { | |||||||
| 		$quadStyle    = $this->maniaControl->manialinkManager->styleManager->getDefaultMainWindowStyle(); | 		$quadStyle    = $this->maniaControl->manialinkManager->styleManager->getDefaultMainWindowStyle(); | ||||||
| 		$quadSubstyle = $this->maniaControl->manialinkManager->styleManager->getDefaultMainWindowSubStyle(); | 		$quadSubstyle = $this->maniaControl->manialinkManager->styleManager->getDefaultMainWindowSubStyle(); | ||||||
|  |  | ||||||
| 		// TODO: all configurable or as constants | 		//Settings | ||||||
| 		$x         = $width / 2 + 2.5; | 		$x         = $width / 2 + 2.5; | ||||||
| 		$width     = 35; | 		$width     = 35; | ||||||
| 		$height    = $height * 0.75; | 		$height    = $height * 0.75; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user