mirror of
https://github.com/PryPurity/WorldBorder.git
synced 2024-11-14 10:15:36 +01:00
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:
parent
887c858b81
commit
818b06be52
@ -78,7 +78,7 @@ public class BorderCheckTask implements Runnable
|
||||
{
|
||||
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()));
|
||||
}
|
||||
|
||||
@ -93,7 +93,7 @@ public class BorderCheckTask implements Runnable
|
||||
}
|
||||
|
||||
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());
|
||||
|
||||
|
@ -336,7 +336,7 @@ public class WBCommand implements CommandExecutor
|
||||
Config.setWhooshEffect(split[1].equalsIgnoreCase("on"));
|
||||
|
||||
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)
|
||||
sender.sendMessage("\"Whoosh\" knockback effect " + (Config.whooshEffect() ? "enabled" : "disabled") + ".");
|
||||
|
Loading…
Reference in New Issue
Block a user