Consistent naming for config reader variables.

This commit is contained in:
MobiusDevelopment
2021-11-08 22:05:49 +00:00
parent fcc9de1b6d
commit 830fbb1b61
78 changed files with 26623 additions and 26643 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -182,11 +182,11 @@ public class GameServer
final long serverLoadStart = Chronos.currentTimeMillis();
// GUI
final PropertiesParser interfaceSettings = new PropertiesParser(Config.INTERFACE_CONFIG_FILE);
Config.ENABLE_GUI = interfaceSettings.getBoolean("EnableGUI", true);
final PropertiesParser interfaceConfig = new PropertiesParser(Config.INTERFACE_CONFIG_FILE);
Config.ENABLE_GUI = interfaceConfig.getBoolean("EnableGUI", true);
if (Config.ENABLE_GUI && !GraphicsEnvironment.isHeadless())
{
Config.DARK_THEME = interfaceSettings.getBoolean("DarkTheme", true);
Config.DARK_THEME = interfaceConfig.getBoolean("DarkTheme", true);
System.out.println("GameServer: Running in GUI mode.");
new Gui();
}

View File

@@ -1435,7 +1435,7 @@ class OlympiadGameTask implements Runnable
SystemMessage sm;
// Waiting for teleport to arena
byte step = 60;
for (byte i = Config.ALT_OLY_WAIT_TIME; i > 0; i -= step)
for (int i = Config.ALT_OLY_WAIT_TIME; i > 0; i -= step)
{
sm = new SystemMessage(SystemMessageId.YOU_WILL_BE_MOVED_TO_THE_OLYMPIAD_STADIUM_IN_S1_SECOND_S);
sm.addInt(i);

View File

@@ -64,11 +64,11 @@ public class LoginServer
private LoginServer() throws Exception
{
// GUI
final PropertiesParser interfaceSettings = new PropertiesParser(Config.INTERFACE_CONFIG_FILE);
Config.ENABLE_GUI = interfaceSettings.getBoolean("EnableGUI", true);
final PropertiesParser interfaceConfig = new PropertiesParser(Config.INTERFACE_CONFIG_FILE);
Config.ENABLE_GUI = interfaceConfig.getBoolean("EnableGUI", true);
if (Config.ENABLE_GUI && !GraphicsEnvironment.isHeadless())
{
Config.DARK_THEME = interfaceSettings.getBoolean("DarkTheme", true);
Config.DARK_THEME = interfaceConfig.getBoolean("DarkTheme", true);
System.out.println("LoginServer: Running in GUI mode.");
new Gui();
}