From 884d0306dd0fb50229693403bc9b55f9e5a43ed5 Mon Sep 17 00:00:00 2001 From: kremsy Date: Wed, 28 Jun 2017 14:33:05 +0200 Subject: [PATCH] mx karma improved error message --- plugins/MCTeam/KarmaPlugin.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/plugins/MCTeam/KarmaPlugin.php b/plugins/MCTeam/KarmaPlugin.php index 467a7896..0c50d4ac 100644 --- a/plugins/MCTeam/KarmaPlugin.php +++ b/plugins/MCTeam/KarmaPlugin.php @@ -269,8 +269,14 @@ class KarmaPlugin implements CallbackListener, TimerListener, Plugin { $this->activateSession($mxKarmaCode); } else { Logger::logError("Error while authenticating on Mania-Exchange Karma"); - // TODO remove temp trigger - $this->maniaControl->getErrorHandler()->triggerDebugNotice('auth error ' . json_encode($data->data->message)); + + if($data->data->message == "invalid server"){ + Logger::log("You need to get a Karma Key from MX with registering your server"); + }else{ + // TODO remove temp trigger + $this->maniaControl->getErrorHandler()->triggerDebugNotice('auth error ' . json_encode($data->data->message)); + } + $this->mxKarma['connectionInProgress'] = false; } });