improved command manager

This commit is contained in:
kremsy
2013-12-09 22:20:30 +01:00
parent 67f468161e
commit 89ec2aa9a5
3 changed files with 22 additions and 21 deletions

View File

@ -26,9 +26,9 @@ class AuthCommands implements CommandListener {
$this->maniaControl = $maniaControl;
// Register for commands
$this->maniaControl->commandManager->registerCommandListener('/addsuperadmin', $this, 'command_AddSuperAdmin');
$this->maniaControl->commandManager->registerCommandListener('/addadmin', $this, 'command_AddAdmin');
$this->maniaControl->commandManager->registerCommandListener('/addop', $this, 'command_AddOperator');
$this->maniaControl->commandManager->registerCommandListener('addsuperadmin', $this, 'command_AddSuperAdmin',true);
$this->maniaControl->commandManager->registerCommandListener('addadmin', $this, 'command_AddAdmin',true);
$this->maniaControl->commandManager->registerCommandListener('addop', $this, 'command_AddOperator',true);
}
/**