mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2025-01-15 20:31:40 +01:00
Refactor code
This commit is contained in:
parent
ba3ec3753e
commit
ebca586651
@ -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);
|
||||||
|
@ -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":
|
||||||
|
Loading…
Reference in New Issue
Block a user