resolved todo

This commit is contained in:
Steffen Schröder 2014-06-22 18:42:40 +02:00
parent 3b4b2f2cce
commit 1fc2d567cf
2 changed files with 4 additions and 7 deletions

View File

@ -10,7 +10,7 @@ use ManiaControl\Commands\CommandListener;
use ManiaControl\ManiaControl;
use ManiaControl\Manialinks\ManialinkPageAnswerListener;
use ManiaControl\Server\Server;
use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
use Maniaplanet\DedicatedServer\Xmlrpc\GameModeException;
/**
* Class offering various Admin Commands related to Players
@ -103,14 +103,12 @@ class PlayerCommands implements CommandListener, ManialinkPageAnswerListener, Ca
try {
$this->maniaControl->client->autoTeamBalance();
} catch (Exception $e) {
$this->maniaControl->errorHandler->triggerDebugNotice("PlayerCommands Debug Line 112: " . $e->getMessage());
// TODO: only catch 'not in team mode' exception - throw others (like connection error)
$this->maniaControl->chat->sendError('Error occurred: ' . $e->getMessage(), $player->login);
} catch (GameModeException $exception) {
$this->maniaControl->chat->sendException($exception, $player);
return;
}
$this->maniaControl->chat->sendInformation('$<' . $player->nickname . '$> balanced Teams!');
$this->maniaControl->chat->sendInformation($player->getEscapedNickname() . ' balanced Teams!');
}
/**

View File

@ -243,7 +243,6 @@ class PluginInstallMenu implements ConfiguratorMenu, ManialinkPageAnswerListener
* @see \ManiaControl\Configurators\ConfiguratorMenu::saveConfigData()
*/
public function saveConfigData(array $configData, Player $player) {
// TODO: Implement saveConfigData() method.
}
/**