dedi minversion check
This commit is contained in:
parent
93b2230653
commit
01c254b5c0
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user