small fix dynamicpointlimitplugin

This commit is contained in:
kremsy 2014-05-08 19:58:12 +02:00
parent c149e696b1
commit a98eebee3b

View File

@ -8,6 +8,7 @@ use ManiaControl\ManiaControl;
use ManiaControl\Players\Player;
use ManiaControl\Players\PlayerManager;
use ManiaControl\Plugins\Plugin;
use Maniaplanet\DedicatedServer\Xmlrpc\FaultException;
/**
* Dynamic Pointlimit plugin
@ -148,6 +149,10 @@ class DynamicPointlimitPlugin implements CallbackListener, CommandListener, Plug
$pointlimit = $max_value;
}
$this->maniaControl->client->setModeScriptSettings(array('S_MapPointsLimit' => $pointlimit));
try{
$this->maniaControl->client->setModeScriptSettings(array('S_MapPointsLimit' => $pointlimit));
}catch(FaultException $e){
}
}
}