updated pause / warmup systems in mc

This commit is contained in:
kremsy
2017-04-13 20:46:23 +02:00
parent 65f179e7a2
commit cffbc6cd89
5 changed files with 99 additions and 68 deletions

View File

@ -212,10 +212,10 @@ class ModeScriptEventManager implements UsageInformationAble {
* Extend the duration of any ongoing warmup.
*
* @api
* @param $milisec < the duration of the extension in milliseconds.
* @param $seconds < the duration of the extension in seconds.
*/
public function extendManiaPlanetWarmup($milisec) {
$this->maniaControl->getClient()->triggerModeScriptEvent('Maniaplanet.WarmUp.Extend', array($milisec));
public function extendManiaPlanetWarmup($seconds) {
$this->maniaControl->getClient()->triggerModeScriptEvent('Maniaplanet.WarmUp.Extend', array($seconds * 1000));
}
/**