exception fixes

This commit is contained in:
kremsy
2014-05-08 21:10:56 +02:00
parent 696505769d
commit 3f7da59ae2
25 changed files with 14 additions and 34 deletions

View File

@ -15,7 +15,7 @@ use ManiaControl\Callbacks\CallbackListener;
use ManiaControl\Callbacks\CallbackManager;
use ManiaControl\ManiaControl;
use ManiaControl\Players\Player;
use Maniaplanet\DedicatedServer\Xmlrpc\LadderModeUnknownException;
use Maniaplanet\DedicatedServer\Xmlrpc\ServerOptionsException;
/**
* Class offering a Configurator for Server Settings
@ -330,8 +330,8 @@ class ServerSettings implements ConfiguratorMenu, CallbackListener {
try {
$this->maniaControl->client->setServerOptions($newSettings);
} catch (LadderModeUnknownException $e) {
$this->maniaControl->chat->sendError("Unknown Ladder-Mode");
} catch (ServerOptionsException $e) {
$this->maniaControl->chat->sendError($e->getMessage());
return false;
}