small improvements
This commit is contained in:
		| @@ -11,7 +11,6 @@ use ManiaControl\Callbacks\CallbackListener; | |||||||
| use ManiaControl\Callbacks\CallbackManager; | use ManiaControl\Callbacks\CallbackManager; | ||||||
| use ManiaControl\Callbacks\Callbacks; | use ManiaControl\Callbacks\Callbacks; | ||||||
| use ManiaControl\Callbacks\TimerListener; | use ManiaControl\Callbacks\TimerListener; | ||||||
| use ManiaControl\Files\AsynchronousFileReader; |  | ||||||
| use ManiaControl\Files\AsyncHttpRequest; | use ManiaControl\Files\AsyncHttpRequest; | ||||||
| use ManiaControl\Logger; | use ManiaControl\Logger; | ||||||
| use ManiaControl\ManiaControl; | use ManiaControl\ManiaControl; | ||||||
| @@ -271,7 +270,7 @@ class KarmaPlugin implements CallbackListener, TimerListener, Plugin { | |||||||
| 			} else { | 			} else { | ||||||
| 				Logger::logError("Error while authenticating on Mania-Exchange Karma"); | 				Logger::logError("Error while authenticating on Mania-Exchange Karma"); | ||||||
| 				// TODO remove temp trigger | 				// 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; | 				$this->mxKarma['connectionInProgress'] = false; | ||||||
| 			} | 			} | ||||||
| 		}); | 		}); | ||||||
| @@ -781,7 +780,7 @@ class KarmaPlugin implements CallbackListener, TimerListener, Plugin { | |||||||
| 			case self::SETTING_WIDGET_ENABLE: { | 			case self::SETTING_WIDGET_ENABLE: { | ||||||
| 				if ($setting->value) { | 				if ($setting->value) { | ||||||
| 					$this->updateManialink = true; | 					$this->updateManialink = true; | ||||||
| 					$this->handle1Second(time()); | 					$this->handle1Second(); | ||||||
| 				} else { | 				} else { | ||||||
| 					$this->updateManialink = false; | 					$this->updateManialink = false; | ||||||
| 					$this->maniaControl->getManialinkManager()->hideManialink(self::MLID_KARMA); | 					$this->maniaControl->getManialinkManager()->hideManialink(self::MLID_KARMA); | ||||||
|   | |||||||
| @@ -426,6 +426,7 @@ class ServerRankingPlugin implements Plugin, CallbackListener, CommandListener { | |||||||
| 			if ($player->isFakePlayer()) { | 			if ($player->isFakePlayer()) { | ||||||
| 				continue; | 				continue; | ||||||
| 			} | 			} | ||||||
|  | 			//TODO combine the following to message to one (saves half of calls) | ||||||
| 			$this->showRank($player); | 			$this->showRank($player); | ||||||
| 			$this->showNextRank($player); | 			$this->showNextRank($player); | ||||||
| 		} | 		} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user