minor cleanup of last commit

This commit is contained in:
Brettflan 2018-04-07 11:40:51 -05:00
parent 208169be49
commit 69895a071d

View File

@ -49,8 +49,8 @@ public class Config
private static boolean portalRedirection = true; private static boolean portalRedirection = true;
private static boolean dynmapEnable = true; private static boolean dynmapEnable = true;
private static String dynmapMessage; private static String dynmapMessage;
private static int dynmapPriority; private static int dynmapPriority = 0;
private static boolean dynmapHideByDefault; private static boolean dynmapHideByDefault = false;
private static int remountDelayTicks = 0; private static int remountDelayTicks = 0;
private static boolean killPlayer = false; private static boolean killPlayer = false;
private static boolean denyEnderpearl = false; private static boolean denyEnderpearl = false;
@ -409,11 +409,13 @@ public class Config
return dynmapMessage; return dynmapMessage;
} }
public static boolean DynmapHideByDefault() { public static boolean DynmapHideByDefault()
{
return dynmapHideByDefault; return dynmapHideByDefault;
} }
public static int DynmapPriority() { public static int DynmapPriority()
{
return dynmapPriority; return dynmapPriority;
} }
@ -607,8 +609,8 @@ public class Config
remountDelayTicks = cfg.getInt("remount-delay-ticks", 0); remountDelayTicks = cfg.getInt("remount-delay-ticks", 0);
dynmapEnable = cfg.getBoolean("dynmap-border-enabled", true); dynmapEnable = cfg.getBoolean("dynmap-border-enabled", true);
dynmapMessage = cfg.getString("dynmap-border-message", "The border of the world."); dynmapMessage = cfg.getString("dynmap-border-message", "The border of the world.");
dynmapHideByDefault = cfg.getBoolean("dynmap-broder-hideByDefault", false); dynmapHideByDefault = cfg.getBoolean("dynmap-border-hideByDefault", false);
dynmapPriority = cfg.getInt("dynmap-border-priority",0); dynmapPriority = cfg.getInt("dynmap-border-priority", 0);
logConfig("Using " + (ShapeName()) + " border, knockback of " + knockBack + " blocks, and timer delay of " + timerTicks + "."); logConfig("Using " + (ShapeName()) + " border, knockback of " + knockBack + " blocks, and timer delay of " + timerTicks + ".");
killPlayer = cfg.getBoolean("player-killed-bad-spawn", false); killPlayer = cfg.getBoolean("player-killed-bad-spawn", false);
denyEnderpearl = cfg.getBoolean("deny-enderpearl", true); denyEnderpearl = cfg.getBoolean("deny-enderpearl", true);
@ -718,7 +720,7 @@ public class Config
cfg.set("remount-delay-ticks", remountDelayTicks); cfg.set("remount-delay-ticks", remountDelayTicks);
cfg.set("dynmap-border-enabled", dynmapEnable); cfg.set("dynmap-border-enabled", dynmapEnable);
cfg.set("dynmap-border-message", dynmapMessage); cfg.set("dynmap-border-message", dynmapMessage);
cfg.set("dynmap-broder-hideByDefault", dynmapHideByDefault); cfg.set("dynmap-border-hideByDefault", dynmapHideByDefault);
cfg.set("dynmap-border-priority", dynmapPriority); cfg.set("dynmap-border-priority", dynmapPriority);
cfg.set("player-killed-bad-spawn", killPlayer); cfg.set("player-killed-bad-spawn", killPlayer);
cfg.set("deny-enderpearl", denyEnderpearl); cfg.set("deny-enderpearl", denyEnderpearl);