diff options
author | ElgarL <ElgarL@palmergames.com> | 2013-01-30 19:55:38 +0000 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2013-01-30 19:55:38 +0000 |
commit | fb4a7a3bd67a149c9c6c2e3d03e60bd2ba7f6c89 (patch) | |
tree | 99daa01d5ed73389e4e45fd3fcd6c6d46acda3c8 /EssentialsGroupManager/src/org | |
parent | 17fac3555b477010f8b82bf44c75c1e3c21d3131 (diff) | |
download | Essentials-fb4a7a3bd67a149c9c6c2e3d03e60bd2ba7f6c89.tar Essentials-fb4a7a3bd67a149c9c6c2e3d03e60bd2ba7f6c89.tar.gz Essentials-fb4a7a3bd67a149c9c6c2e3d03e60bd2ba7f6c89.tar.lz Essentials-fb4a7a3bd67a149c9c6c2e3d03e60bd2ba7f6c89.tar.xz Essentials-fb4a7a3bd67a149c9c6c2e3d03e60bd2ba7f6c89.zip |
Fix Necrodooms broken code.
Diffstat (limited to 'EssentialsGroupManager/src/org')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java index 4a9b65317..a7b072145 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java @@ -34,6 +34,7 @@ import org.anjocaido.groupmanager.utils.Tasks; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.OfflinePlayer; +import org.bukkit.block.Block; import org.bukkit.command.BlockCommandSender; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; @@ -392,7 +393,7 @@ public class GroupManager extends JavaPlugin { // PREVENT GM COMMANDS BEING USED ON COMMANDBLOCKS if (sender instanceof BlockCommandSender && !isAllowCommandBlocks) { Block block = ((BlockCommandSender)sender).getBlock(); - console.sendMessage(ChatColor.RED + "GM Commands can not be called from CommandBlock at location:" + ChatColor.GREEN + " " + block.getX + ", " + block.getY + ", " + block.getZ); + GroupManager.logger.warning(ChatColor.RED + "GM Commands can not be called from the CommandBlock at location: " + ChatColor.GREEN + block.getWorld().getName() + " - " + block.getX() + ", " + block.getY() + ", " + block.getZ()); return true; } |