dedi minversion check

This commit is contained in:
kremsy 2014-04-30 00:19:18 +02:00 committed by Steffen Schröder
parent 93b2230653
commit 01c254b5c0

View File

@ -311,12 +311,12 @@ class ManiaControl implements CommandListener, TimerListener {
// Connect to server // Connect to server
$this->connect(); $this->connect();
/* - Commented for now, because of updates towards MP2 MCs - Commented for now, because of updates towards MP2 MCs
// Check if the version of the server is high enough // Check if the version of the server is high enough
$version = $this->client->getVersion(); $version = $this->client->getVersion();
if($version->build < self::MIN_DEDIVERSION) { if($version->build < self::MIN_DEDIVERSION) {
trigger_error("The server has version ".$version->build.", while at least ".self::MIN_DEDIVERSION." is required!", E_USER_ERROR); trigger_error("The server has version ".$version->build.", while at least ".self::MIN_DEDIVERSION." is required!", E_USER_ERROR);
}*/ }
// OnInit callback // OnInit callback
$this->callbackManager->triggerCallback(CallbackManager::CB_ONINIT); $this->callbackManager->triggerCallback(CallbackManager::CB_ONINIT);