use the good default value

This commit is contained in:
Beu 2021-08-18 17:07:07 +02:00
parent 2964febc0a
commit 9fb3323c7e

View File

@ -37,7 +37,7 @@ use ManiaControl\Maps\Map;
class MatchManagerCore implements CallbackListener, CommandListener, TimerListener, CommunicationListener, Plugin { class MatchManagerCore implements CallbackListener, CommandListener, TimerListener, CommunicationListener, Plugin {
const PLUGIN_ID = 152; const PLUGIN_ID = 152;
const PLUGIN_VERSION = 2.0; const PLUGIN_VERSION = '2.0.1';
const PLUGIN_NAME = 'MatchManager Core'; const PLUGIN_NAME = 'MatchManager Core';
const PLUGIN_AUTHOR = 'Beu'; const PLUGIN_AUTHOR = 'Beu';
@ -604,7 +604,7 @@ class MatchManagerCore implements CallbackListener, CommandListener, TimerListen
} }
} }
foreach ($modesettings as $key => $value) { foreach ($modesettings as $key => $value) {
$this->maniaControl->getSettingManager()->initSetting($this, $key, $value, self::SETTINGS_MODE_LIST[$key]['description']); $this->maniaControl->getSettingManager()->initSetting($this, $key, self::SETTINGS_MODE_LIST[$key]['default'], self::SETTINGS_MODE_LIST[$key]['description']);
} }
@ -618,7 +618,7 @@ class MatchManagerCore implements CallbackListener, CommandListener, TimerListen
} }
} }
foreach ($gmsettings as $key => $value) { foreach ($gmsettings as $key => $value) {
$this->maniaControl->getSettingManager()->initSetting($this, $key, $value, self::GAMEMODES_LIST_SETTINGS[$key]['description']); $this->maniaControl->getSettingManager()->initSetting($this, $key, self::GAMEMODES_LIST_SETTINGS[$key]['default'], self::GAMEMODES_LIST_SETTINGS[$key]['description']);
} }
} else { } else {
foreach ($allsettings as $key => $value) { foreach ($allsettings as $key => $value) {