updated maniaplanet api

This commit is contained in:
kremsy 2017-03-31 21:30:34 +02:00
parent 25fe6f1df6
commit 7b6c6af73e

View File

@ -746,6 +746,24 @@ class Connection
return $this->execute(ucfirst(__FUNCTION__).'ToLogin', array($logins, $link, $linkType), $multicall);
}
/**
* Prior to loading next map, execute SendToServer url '#qjoin=login@title'
* Only available to Admin.
* Available since ManiaPlanet 4
* @param $link
* @param bool $multicall
* @return bool
* @throws InvalidArgumentException
*/
function sendToServerAfterMatchEnd($link, $multicall = false){
if(!is_string($link))
throw new InvalidArgumentException('link = '.print_r($link, true));
$link = str_replace("maniaplanet://", "", $link);
return $this->execute(ucfirst(__FUNCTION__), array($link), $multicall);
}
/**
* Kick the player with the specified login, with an optional message.
* Only available to Admin.