Refactor code

This commit is contained in:
GeorgH93 2019-06-30 18:13:40 +02:00
parent ba3ec3753e
commit ebca586651
No known key found for this signature in database
GPG Key ID: D1630D37F9E4B3C8
2 changed files with 2 additions and 8 deletions

View File

@ -211,12 +211,6 @@ public boolean getAutoUpdate()
return getConfig().getBoolean("Misc.AutoUpdate", true); return getConfig().getBoolean("Misc.AutoUpdate", true);
} }
public boolean useUpdaterDevBuilds()
{
//TODO add config value for final version
return true;
}
public boolean isBungeeCordModeEnabled() public boolean isBungeeCordModeEnabled()
{ {
return getConfig().getBoolean("Misc.UseBungeeCord", false); return getConfig().getBoolean("Misc.UseBungeeCord", false);

View File

@ -82,9 +82,9 @@ public static void updateLanguage(YAML oldYAML, YAML newYAML, Logger logger)
switch(keys[1]) switch(keys[1])
{ {
case "Console": case "Console":
switch(keys[2]) if("NotFromConsole".equals(keys[2]))
{ {
case "NotFromConsole": advancedConverter.put("Language.NotFromConsole", "&c" + oldYAML.getString(key)); break; advancedConverter.put("Language.NotFromConsole", "&c" + oldYAML.getString(key));
} }
break; break;
case "Ingame": case "Ingame":