From a0788c14323297fd545081f77272737b589387ef Mon Sep 17 00:00:00 2001 From: kremsy Date: Fri, 3 Jan 2014 12:17:49 +0100 Subject: [PATCH] forgot to delete method --- .../core/Configurators/ServerSettings.php | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/application/core/Configurators/ServerSettings.php b/application/core/Configurators/ServerSettings.php index d426f303..57926e26 100644 --- a/application/core/Configurators/ServerSettings.php +++ b/application/core/Configurators/ServerSettings.php @@ -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 } /**