catch game mode exception
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user