Changed Internal Callbacks formats to use objects directly instead of an array
This commit is contained in:
		@@ -32,7 +32,10 @@ class HelpManager implements CommandListener, CallbackListener {
 | 
			
		||||
		$this->maniaControl->callbackManager->registerCallbackListener(CallbackManager::CB_ONINIT, $this, 'handleOnInit');
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	public function handleOnInit(array $callback) {
 | 
			
		||||
	/**
 | 
			
		||||
	 * Handle ManiaControl OnInit Callback
 | 
			
		||||
	 */
 | 
			
		||||
	public function handleOnInit() {
 | 
			
		||||
		//Register the help command
 | 
			
		||||
		$this->maniaControl->commandManager->registerCommandListener('help', $this, 'command_playerHelp', false);
 | 
			
		||||
		$this->maniaControl->commandManager->registerCommandListener('help', $this, 'command_adminHelp', true);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user