small improvements
This commit is contained in:
parent
640d285c78
commit
79f066b473
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user