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 | df0ccb58329de6a65c786996fdd70ec173846eaf (patch) | |
tree | 5bfb2c6291a772dd234f7438616f46db333bd1fb | |
parent | 8afcd41ab25c54446b782be08dd5e31379b83931 (diff) | |
download | Essentials-df0ccb58329de6a65c786996fdd70ec173846eaf.tar Essentials-df0ccb58329de6a65c786996fdd70ec173846eaf.tar.gz Essentials-df0ccb58329de6a65c786996fdd70ec173846eaf.tar.lz Essentials-df0ccb58329de6a65c786996fdd70ec173846eaf.tar.xz Essentials-df0ccb58329de6a65c786996fdd70ec173846eaf.zip |
Fix Necrodooms broken code.
-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; } |