prevent exception

This commit is contained in:
Steffen Schröder 2014-06-14 18:43:56 +02:00
parent a46e401746
commit 99d6299016

View File

@ -24,6 +24,7 @@ use ManiaControl\Manialinks\ManialinkPageAnswerListener;
use ManiaControl\Players\Player;
use ManiaControl\Utils\ColorUtil;
use ManiaControl\Utils\Formatter;
use Maniaplanet\DedicatedServer\Xmlrpc\NextMapException;
use Maniaplanet\DedicatedServer\Xmlrpc\NotInListException;
use MCTeam\CustomVotesPlugin;
use MCTeam\KarmaPlugin;
@ -601,8 +602,8 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener {
$this->maniaControl->mapManager->mapQueue->dontQueueNextMapChange();
try {
$this->maniaControl->client->jumpToMapIdent($mapUid);
} catch (NotInListException $e) {
$this->maniaControl->chat->sendError("Error on Jumping to Map Ident!");
} catch (NextMapException $e) {
$this->maniaControl->chat->sendError('Error on Jumping to Map Ident!', $player);
break;
}