catch not spectator exception

This commit is contained in:
Steffen Schröder 2014-06-23 23:08:08 +02:00
parent d7bea9ecd8
commit d6c3707219

View File

@ -6,6 +6,7 @@ use ManiaControl\Commands\CommandListener;
use ManiaControl\ManiaControl;
use ManiaControl\Players\Player;
use ManiaControl\Plugins\Plugin;
use Maniaplanet\DedicatedServer\Xmlrpc\PlayerStateException;
use Maniaplanet\DedicatedServer\Xmlrpc\UnknownPlayerException;
/**
@ -407,7 +408,7 @@ class ChatMessagePlugin implements CommandListener, Plugin {
$this->maniaControl->client->spectatorReleasePlayerSlot($player->login);
} catch (UnknownPlayerException $exception) {
$this->maniaControl->chat->sendException($exception, $player);
return;
} catch (PlayerStateException $exception) {
}
}
}