From 7bb2d98a4381cc07cc328a4f6e6171a113ba66ff Mon Sep 17 00:00:00 2001 From: kremsy Date: Sat, 19 Apr 2014 23:38:08 +0200 Subject: [PATCH] exception fix --- application/core/Maps/MapCommands.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/application/core/Maps/MapCommands.php b/application/core/Maps/MapCommands.php index 8fbc25af..82f7135a 100644 --- a/application/core/Maps/MapCommands.php +++ b/application/core/Maps/MapCommands.php @@ -185,9 +185,10 @@ class MapCommands implements CommandListener, ManialinkPageAnswerListener, Callb $this->maniaControl->authenticationManager->sendNotAllowed($player); return; } - - $this->maniaControl->client->nextMap(); - + try { + $this->maniaControl->client->nextMap(); + } catch(ChangeInProgressException $e) { + } $message = '$<' . $player->nickname . '$> skipped the current Map!'; $this->maniaControl->chat->sendSuccess($message); $this->maniaControl->log($message, true);