improvements

This commit is contained in:
kremsy 2014-01-17 16:45:52 +01:00 committed by Steffen Schröder
parent f021084a90
commit 7e18d36dac

View File

@ -156,7 +156,7 @@ class ScriptSettings implements ConfiguratorMenu, CallbackListener {
} }
$scriptParams = $scriptInfo['ParamDescs']; $scriptParams = $scriptInfo['ParamDescs'];
$scriptSettings = $this->maniaControl->client->execute('GetModeScriptSettings'); $scriptSettings = $this->maniaControl->client->getModeScriptSettings();
// Config // Config
$pagerSize = 9.; $pagerSize = 9.;
@ -283,7 +283,7 @@ class ScriptSettings implements ConfiguratorMenu, CallbackListener {
return; return;
} }
$scriptSettings = $this->maniaControl->client->execute('GetModeScriptSettings'); $scriptSettings = $this->maniaControl->client->getModeScriptSettings();
$prefixLength = strlen(self::ACTION_PREFIX_SETTING); $prefixLength = strlen(self::ACTION_PREFIX_SETTING);
@ -345,7 +345,7 @@ class ScriptSettings implements ConfiguratorMenu, CallbackListener {
* @param $setting * @param $setting
*/ */
public function toggleBooleanSetting($setting, Player $player) { public function toggleBooleanSetting($setting, Player $player) {
$scriptSettings = $this->maniaControl->client->execute('GetModeScriptSettings'); $scriptSettings = $this->maniaControl->client->getModeScriptSettings();
if(!isset($scriptSettings[$setting])) { if(!isset($scriptSettings[$setting])) {
var_dump('no setting ' . $setting); var_dump('no setting ' . $setting);
return; return;