forgot to delete method

This commit is contained in:
kremsy 2014-01-03 12:17:49 +01:00
parent 9e599c829c
commit a0788c1432

View File

@ -246,28 +246,6 @@ class ServerSettings implements ConfiguratorMenu, CallbackListener {
//$this->toggleBooleanSetting($setting, $player);
}
/**
* Toogle a Boolean Setting
*
* @param Player $player
* @param $setting
*/
public function toggleBooleanSetting($setting, Player $player) {
$this->maniaControl->client->query('GetServerOptions');
$serverSettings = $this->maniaControl->client->getResponse();
if(!isset($serverSettings[$setting])) {
var_dump('no setting ' . $setting);
return;
}
$newSettings = array();
$newSettings[$setting] = ($serverSettings[$setting] ? false : true);
var_dump($newSettings);
$this->applyNewScriptSettings($newSettings, $player);
}
/**
* Apply the Array of new Script Settings
@ -310,8 +288,6 @@ class ServerSettings implements ConfiguratorMenu, CallbackListener {
// $chatMessage .= '!';
// $this->maniaControl->chat->sendInformation($chatMessage);
//$this->maniaControl->log(Formatter::stripCodes($chatMessage));
//TODO reopen menu
}
/**