From 9df27b71130d9c953c69a2bec46430ca899b0ec7 Mon Sep 17 00:00:00 2001 From: kremsy Date: Sat, 13 May 2017 12:25:46 +0200 Subject: [PATCH] typo fix --- core/Update/PluginUpdateManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/Update/PluginUpdateManager.php b/core/Update/PluginUpdateManager.php index 12749a90..b5f1f336 100644 --- a/core/Update/PluginUpdateManager.php +++ b/core/Update/PluginUpdateManager.php @@ -250,7 +250,7 @@ class PluginUpdateManager implements CallbackListener, CommandListener, TimerLis } if ($pluginUpdateData->maxManiaControlVersion != -1 && ManiaControl::VERSION > $pluginUpdateData->maxManiaControlVersion) { - $message = "Your ManiaControl Version v" . ManiaControl::VERSION . " is too new for this Plugin (max Version of the Plugin: ' . {$pluginUpdateData->minManiaControlVersion}!"; + $message = "Your ManiaControl Version v" . ManiaControl::VERSION . " is too new for this Plugin (max Version of the Plugin: ' . {$pluginUpdateData->maxManiaControlVersion}!"; if ($player) { $this->maniaControl->getChat()->sendError($message, $player); } @@ -426,7 +426,7 @@ class PluginUpdateManager implements CallbackListener, CommandListener, TimerLis } $pluginUpdateData = new PluginUpdateData($pluginVersion); $version = $pluginClass::getVersion(); - + if ($pluginUpdateData->isNewerThan($version) && ($pluginUpdateData->maxManiaControlVersion == -1 || $pluginUpdateData->maxManiaControlVersion >= ManiaControl::VERSION)) { return $pluginUpdateData; }