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;