Debug output (if debug mode is enabled) for border crossings now indicates the world name.

When enabling/disabling "whoosh" effect (via /wb whoosh), it was incorrectly indicating whether it was enabled/disabled; fixed
This commit is contained in:
Brettflan 2011-09-22 00:55:02 -05:00
parent 887c858b81
commit 818b06be52
2 changed files with 3 additions and 3 deletions

View File

@ -78,7 +78,7 @@ public class BorderCheckTask implements Runnable
{ {
if (Config.Debug()) if (Config.Debug())
{ {
Config.LogWarn("Border crossing. Border " + border.toString()); Config.LogWarn("Border crossing in \"" + loc.getWorld().getName() + "\". Border " + border.toString());
Config.LogWarn("Player position X: " + Config.coord.format(loc.getX()) + " Y: " + Config.coord.format(loc.getY()) + " Z: " + Config.coord.format(loc.getZ())); Config.LogWarn("Player position X: " + Config.coord.format(loc.getX()) + " Y: " + Config.coord.format(loc.getY()) + " Z: " + Config.coord.format(loc.getZ()));
} }
@ -93,7 +93,7 @@ public class BorderCheckTask implements Runnable
} }
if (Config.Debug()) if (Config.Debug())
Config.LogWarn("New position X: " + Config.coord.format(newLoc.getX()) + " Y: " + Config.coord.format(newLoc.getY()) + " Z: " + Config.coord.format(newLoc.getZ())); Config.LogWarn("New position in world \"" + newLoc.getWorld().getName() + "\" at X: " + Config.coord.format(newLoc.getX()) + " Y: " + Config.coord.format(newLoc.getY()) + " Z: " + Config.coord.format(newLoc.getZ()));
player.sendMessage(ChatColor.RED + Config.Message()); player.sendMessage(ChatColor.RED + Config.Message());

View File

@ -336,7 +336,7 @@ public class WBCommand implements CommandExecutor
Config.setWhooshEffect(split[1].equalsIgnoreCase("on")); Config.setWhooshEffect(split[1].equalsIgnoreCase("on"));
if (player != null) if (player != null)
Config.Log((Config.Debug() ? "Enabling" : "Disabling") + " \"whoosh\" knockback effect at the command of player \"" + player.getName() + "\"."); Config.Log((Config.whooshEffect() ? "Enabling" : "Disabling") + " \"whoosh\" knockback effect at the command of player \"" + player.getName() + "\".");
if (player != null) if (player != null)
sender.sendMessage("\"Whoosh\" knockback effect " + (Config.whooshEffect() ? "enabled" : "disabled") + "."); sender.sendMessage("\"Whoosh\" knockback effect " + (Config.whooshEffect() ? "enabled" : "disabled") + ".");