exception catch

This commit is contained in:
kremsy 2015-02-01 12:12:22 +01:00
parent 723ed19e08
commit 535f3058cc

View File

@ -7,6 +7,7 @@ use ManiaControl\ManiaControl;
use ManiaControl\Players\Player; use ManiaControl\Players\Player;
use ManiaControl\Plugins\Plugin; use ManiaControl\Plugins\Plugin;
use Maniaplanet\DedicatedServer\Xmlrpc\PlayerStateException; use Maniaplanet\DedicatedServer\Xmlrpc\PlayerStateException;
use Maniaplanet\DedicatedServer\Xmlrpc\ServerOptionsException;
use Maniaplanet\DedicatedServer\Xmlrpc\UnknownPlayerException; use Maniaplanet\DedicatedServer\Xmlrpc\UnknownPlayerException;
/** /**
@ -407,6 +408,8 @@ class ChatMessagePlugin implements CommandListener, Plugin {
} catch (UnknownPlayerException $exception) { } catch (UnknownPlayerException $exception) {
$this->maniaControl->getChat()->sendException($exception, $player); $this->maniaControl->getChat()->sendException($exception, $player);
} catch (PlayerStateException $exception) { } catch (PlayerStateException $exception) {
} catch (ServerOptionsException $exception) {
//too many spectators
} }
} }