From a316ffc9dfc498c1f10b9c614c71450c88fa0a05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Sun, 10 Aug 2014 00:09:46 +0200 Subject: [PATCH] catch game mode exception --- application/core/Players/PlayerActions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/core/Players/PlayerActions.php b/application/core/Players/PlayerActions.php index 5c35dd4a..68082c9c 100644 --- a/application/core/Players/PlayerActions.php +++ b/application/core/Players/PlayerActions.php @@ -13,6 +13,7 @@ use ManiaControl\ManiaControl; use ManiaControl\Manialinks\ManialinkManager; use Maniaplanet\DedicatedServer\Xmlrpc\AlreadyInListException; use Maniaplanet\DedicatedServer\Xmlrpc\FaultException; +use Maniaplanet\DedicatedServer\Xmlrpc\GameModeException; use Maniaplanet\DedicatedServer\Xmlrpc\NotInListException; use Maniaplanet\DedicatedServer\Xmlrpc\PlayerStateException; use Maniaplanet\DedicatedServer\Xmlrpc\ServerOptionsException; @@ -118,6 +119,9 @@ class PlayerActions { } catch (ServerOptionsException $exception) { $this->forcePlayerToPlay($adminLogin, $targetLogin); return; + } catch (GameModeException $exception) { + $this->maniaControl->getChat()->sendException($exception, $admin); + return; } $chatMessage = false;