made help commands

This commit is contained in:
kremsy
2014-01-14 20:02:35 +01:00
committed by Steffen Schröder
parent 4c0d8270b3
commit 5fdf7317c1
2 changed files with 42 additions and 10 deletions

View File

@ -19,6 +19,7 @@ class CommandManager implements CallbackListener {
private $maniaControl = null;
private $helpManager = array();
private $adminCommandListeners = array();
private $commandListeners = array();
/**
* Construct a new Commands Manager
@ -29,7 +30,7 @@ class CommandManager implements CallbackListener {
$this->maniaControl = $maniaControl;
//Create help manager instance
$this->helpManager = new HelpManager($this->maniaControl, $this);
$this->helpManager = new HelpManager($this->maniaControl);
// Register for callback
$this->maniaControl->callbackManager->registerCallbackListener(CallbackManager::CB_MP_PLAYERCHAT, $this, 'handleChatCallback');