Disable callbacks for TM2020
This commit is contained in:
parent
dd73181396
commit
fdaa53220c
@ -60,14 +60,20 @@ class LibXmlRpcCallbacks implements CallbackListener {
|
|||||||
//No use for this Implementation right now (as the MapManager Callback should be used
|
//No use for this Implementation right now (as the MapManager Callback should be used
|
||||||
break;
|
break;
|
||||||
case 'Maniaplanet.StartMap_End': //Use the MapManager Callback
|
case 'Maniaplanet.StartMap_End': //Use the MapManager Callback
|
||||||
// $jsonData = json_decode($data[0]);
|
// Disable only on TM2020
|
||||||
// $this->maniaControl->getMapManager()->handleScriptBeginMap($jsonData->map->uid, $jsonData->restarted);
|
if ($this->maniaControl->getServer()->titleId != "Trackmania") {
|
||||||
|
$jsonData = json_decode($data[0]);
|
||||||
|
$this->maniaControl->getMapManager()->handleScriptBeginMap($jsonData->map->uid, $jsonData->restarted);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 'Maniaplanet.EndMap_Start':
|
case 'Maniaplanet.EndMap_Start':
|
||||||
//no need for this implementation, callback handled by Map Manager
|
//no need for this implementation, callback handled by Map Manager
|
||||||
break;
|
break;
|
||||||
case 'Maniaplanet.EndMap_End': //Use the MapManager Callback
|
case 'Maniaplanet.EndMap_End': //Use the MapManager Callback
|
||||||
// $this->maniaControl->getMapManager()->handleScriptEndMap(); //Verify if better here or at EndMap_End
|
// Disable only on TM2020
|
||||||
|
if ($this->maniaControl->getServer()->titleId != "Trackmania") {
|
||||||
|
$this->maniaControl->getMapManager()->handleScriptEndMap(); //Verify if better here or at EndMap_End
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user