From ea9c929ec3b8688ba78aa56ed65e02c91d444534 Mon Sep 17 00:00:00 2001 From: kremsy Date: Sun, 20 Apr 2014 12:54:29 +0200 Subject: [PATCH] small exception fix --- application/core/Players/PlayerList.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/application/core/Players/PlayerList.php b/application/core/Players/PlayerList.php index 2cf1df1d..88f82dd1 100644 --- a/application/core/Players/PlayerList.php +++ b/application/core/Players/PlayerList.php @@ -23,6 +23,7 @@ use ManiaControl\Formatter; use ManiaControl\ManiaControl; use ManiaControl\Manialinks\ManialinkManager; use ManiaControl\Manialinks\ManialinkPageAnswerListener; +use Maniaplanet\DedicatedServer\Xmlrpc\LoginUnknownException; use Maniaplanet\DedicatedServer\Xmlrpc\PlayerIsNotSpectatorException; /** @@ -742,7 +743,10 @@ class PlayerList implements ManialinkPageAnswerListener, CallbackListener, Timer $votesPlugin->undefineVote('kick'); $message = '$39F You got kicked due a Public vote!$z '; - $this->maniaControl->client->kick($target->login, $message); + try { + $this->maniaControl->client->kick($target->login, $message); + } catch(LoginUnknownException $e) { + } }); break; }