small improvements

This commit is contained in:
kremsy 2017-05-12 20:15:37 +02:00
parent 640d285c78
commit 79f066b473
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);
}