Added commanddescriptions to plugins.

This commit is contained in:
Max Klaversma
2014-05-01 01:50:52 +02:00
committed by Steffen Schröder
parent d2021d689e
commit 9653658f06
6 changed files with 26 additions and 28 deletions

View File

@ -102,7 +102,7 @@ class CustomVotesPlugin implements CommandListener, CallbackListener, ManialinkP
public function load(ManiaControl $maniaControl) {
$this->maniaControl = $maniaControl;
$this->maniaControl->commandManager->registerCommandListener('vote', $this, 'chat_vote');
$this->maniaControl->commandManager->registerCommandListener('vote', $this, 'chat_vote', false, 'Votes for the current vote.');
$this->maniaControl->timerManager->registerTimerListening($this, 'handle1Second', 1000);
$this->maniaControl->callbackManager->registerCallbackListener(ServerCommands::CB_VOTE_CANCELED, $this, 'handleVoteCanceled');
$this->maniaControl->manialinkManager->registerManialinkPageAnswerListener(self::ACTION_POSITIVE_VOTE, $this, 'handlePositiveVote');