diff --git a/src/main/java/com/wimbli/WorldBorder/Config.java b/src/main/java/com/wimbli/WorldBorder/Config.java index dc99e9a..c1b876a 100644 --- a/src/main/java/com/wimbli/WorldBorder/Config.java +++ b/src/main/java/com/wimbli/WorldBorder/Config.java @@ -27,10 +27,10 @@ public class Config private static WorldBorder plugin; private static FileConfiguration cfg = null; private static Logger wbLog = null; - public static DecimalFormat coord = new DecimalFormat("0.0"); + public static volatile DecimalFormat coord = new DecimalFormat("0.0"); private static int borderTask = -1; - public static WorldFillTask fillTask; - public static WorldTrimTask trimTask; + public static volatile WorldFillTask fillTask = null; + public static volatile WorldTrimTask trimTask = null; private static Runtime rt = Runtime.getRuntime(); // actual configuration values which can be changed @@ -43,7 +43,7 @@ public class Config private static boolean DEBUG = false; private static double knockBack = 3.0; private static int timerTicks = 4; - private static boolean whooshEffect = false; + private static boolean whooshEffect = true; private static boolean portalRedirection = true; private static boolean dynmapEnable = true; private static String dynmapMessage; @@ -541,7 +541,7 @@ public class Config String msg = cfg.getString("message"); shapeRound = cfg.getBoolean("round-border", true); DEBUG = cfg.getBoolean("debug-mode", false); - whooshEffect = cfg.getBoolean("whoosh-effect", false); + whooshEffect = cfg.getBoolean("whoosh-effect", true); portalRedirection = cfg.getBoolean("portal-redirection", true); knockBack = cfg.getDouble("knock-back-dist", 3.0); timerTicks = cfg.getInt("timer-delay-ticks", 5); diff --git a/src/main/java/com/wimbli/WorldBorder/cmd/CmdWhoosh.java b/src/main/java/com/wimbli/WorldBorder/cmd/CmdWhoosh.java index 6f1e90e..67a498e 100644 --- a/src/main/java/com/wimbli/WorldBorder/cmd/CmdWhoosh.java +++ b/src/main/java/com/wimbli/WorldBorder/cmd/CmdWhoosh.java @@ -16,7 +16,7 @@ public class CmdWhoosh extends WBCmd minParams = maxParams = 1; addCmdExample(nameEmphasized() + " - turn knockback effect on or off."); - helpText = "Default value: off. This will show a particle effect and play a sound where a player is knocked " + + helpText = "Default value: on. This will show a particle effect and play a sound where a player is knocked " + "back from the border."; } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 26fa666..fc8b167 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -11,17 +11,18 @@ commands: aliases: [worldborder, wb] usage: | / - list available commands (show help). - / set [radiusZ] - set world border, centered on you. + / help [command] - get help on command usage. / [world] set [radiusZ] - set world border. / [world] set [radiusZ] spawn - use spawn point. + / set [radiusZ] - set world border, centered on you. / set [radiusZ] player - center on player. / [world] setcorners - set border from corners. / [world] radius [radiusZ] - change border's radius. + / list - show border information for all worlds. / shape - set the default border shape. / shape - same as above, backwards compatible. / [world] clear - remove border for this world. / clear all - remove border for all worlds. - / list - show border information for all worlds. / [world] fill [freq] [pad] [force] - generate world to border. / [world] trim [freq] [pad] - trim world outside of border. / bypass [player] [on/off] - let player go beyond border. @@ -31,9 +32,9 @@ commands: / whoosh - turn knockback effect on or off. / getmsg - display border message. / setmsg - set border message. - / delay - time between border checks. / wshape [world] - override shape. / wshape [world] - same as above values. + / delay - time between border checks. / dynmap - turn DynMap border display on or off. / dynmapmsg - DynMap border labels will show this. / remount - delay before remounting after knockback.