updated maniaplanet api
This commit is contained in:
parent
25fe6f1df6
commit
7b6c6af73e
@ -746,6 +746,24 @@ class Connection
|
|||||||
return $this->execute(ucfirst(__FUNCTION__).'ToLogin', array($logins, $link, $linkType), $multicall);
|
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.
|
* Kick the player with the specified login, with an optional message.
|
||||||
* Only available to Admin.
|
* Only available to Admin.
|
||||||
|
Loading…
Reference in New Issue
Block a user