From 79f066b4736073cfb90b87ec26dc8e1d81f4bf2f Mon Sep 17 00:00:00 2001 From: kremsy Date: Fri, 12 May 2017 20:15:37 +0200 Subject: [PATCH] small improvements --- plugins/MCTeam/KarmaPlugin.php | 5 ++--- plugins/MCTeam/ServerRankingPlugin.php | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/MCTeam/KarmaPlugin.php b/plugins/MCTeam/KarmaPlugin.php index 1d227733..cddbc2be 100644 --- a/plugins/MCTeam/KarmaPlugin.php +++ b/plugins/MCTeam/KarmaPlugin.php @@ -11,7 +11,6 @@ use ManiaControl\Callbacks\CallbackListener; use ManiaControl\Callbacks\CallbackManager; use ManiaControl\Callbacks\Callbacks; use ManiaControl\Callbacks\TimerListener; -use ManiaControl\Files\AsynchronousFileReader; use ManiaControl\Files\AsyncHttpRequest; use ManiaControl\Logger; use ManiaControl\ManiaControl; @@ -271,7 +270,7 @@ class KarmaPlugin implements CallbackListener, TimerListener, Plugin { } else { Logger::logError("Error while authenticating on Mania-Exchange Karma"); // TODO remove temp trigger - $this->maniaControl->getErrorHandler()->triggerDebugNotice('auth error', $data->data->message); + $this->maniaControl->getErrorHandler()->triggerDebugNotice('auth error ' . $data->data->message); $this->mxKarma['connectionInProgress'] = false; } }); @@ -781,7 +780,7 @@ class KarmaPlugin implements CallbackListener, TimerListener, Plugin { case self::SETTING_WIDGET_ENABLE: { if ($setting->value) { $this->updateManialink = true; - $this->handle1Second(time()); + $this->handle1Second(); } else { $this->updateManialink = false; $this->maniaControl->getManialinkManager()->hideManialink(self::MLID_KARMA); diff --git a/plugins/MCTeam/ServerRankingPlugin.php b/plugins/MCTeam/ServerRankingPlugin.php index d4fe0f45..e0a18474 100644 --- a/plugins/MCTeam/ServerRankingPlugin.php +++ b/plugins/MCTeam/ServerRankingPlugin.php @@ -426,6 +426,7 @@ class ServerRankingPlugin implements Plugin, CallbackListener, CommandListener { if ($player->isFakePlayer()) { continue; } + //TODO combine the following to message to one (saves half of calls) $this->showRank($player); $this->showNextRank($player); }