Update ScriptManager.php
Added XmlRpc.EnableCallbacks for TrackMania aswell as Shootmania.
This commit is contained in:
parent
795df0ed2c
commit
df2d548755
@ -47,15 +47,8 @@ class ScriptManager {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!array_key_exists('S_UseScriptCallbacks', $scriptSettings)) {
|
$this->maniaControl->getClient()->triggerModeScriptEvent('XmlRpc.EnableCallbacks', array('true'));
|
||||||
return false;
|
Logger::logInfo("Script Callbacks successfully enabled!");
|
||||||
}
|
|
||||||
|
|
||||||
$scriptSettings['S_UseScriptCallbacks'] = (bool) $enable;
|
|
||||||
$actionName = ($enable ? 'en' : 'dis');
|
|
||||||
|
|
||||||
$this->maniaControl->getClient()->setModeScriptSettings($scriptSettings);
|
|
||||||
Logger::logInfo("Script Callbacks successfully {$actionName}abled!");
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user