changed the mapcommands to the new structure

This commit is contained in:
kremsy 2013-12-09 22:22:01 +01:00
parent 89ec2aa9a5
commit 196b6eeee4

View File

@ -27,10 +27,10 @@ class MapCommands implements CommandListener {
public function __construct(ManiaControl $maniaControl) {
$this->maniaControl = $maniaControl;
$this->maniaControl->commandManager->registerCommandListener('/nextmap', $this, 'command_NextMap');
$this->maniaControl->commandManager->registerCommandListener('/restartmap', $this, 'command_RestartMap');
$this->maniaControl->commandManager->registerCommandListener('/addmap', $this, 'command_AddMap');
$this->maniaControl->commandManager->registerCommandListener('/removemap', $this, 'command_RemoveMap');
$this->maniaControl->commandManager->registerCommandListener('nextmap', $this, 'command_NextMap',true);
$this->maniaControl->commandManager->registerCommandListener('restartmap', $this, 'command_RestartMap',true);
$this->maniaControl->commandManager->registerCommandListener('addmap', $this, 'command_AddMap',true);
$this->maniaControl->commandManager->registerCommandListener('removemap', $this, 'command_RemoveMap',true);
}
/**