compatibility updates

This commit is contained in:
kremsy
2014-02-08 15:00:21 +01:00
committed by Steffen Schröder
parent 4385942d32
commit d478e81c08
5 changed files with 9 additions and 23 deletions

View File

@ -126,8 +126,10 @@ class ObstaclePlugin implements CallbackListener, CommandListener, Plugin {
// Send jump callback
$params = explode(' ', $chatCallback[1][2], 2);
$param = $player->login . ";" . $params[1] . ";";
if (!$this->maniaControl->client->query('TriggerModeScriptEvent', self::CB_JUMPTO, $param)) {
trigger_error("Couldn't send jump callback for '{$player->login}'. " . $this->maniaControl->getClientErrorText());
try{
$this->maniaControl->client->triggerModeScriptEvent(self::CB_JUMPTO, $param);
} catch(\Exception $e){
trigger_error("Couldn't send jump callback for '{$player->login}'. " . $e->getMessage());
}
}