diff options
author | Necrodoom <doomed.war@gmail.com> | 2013-01-30 19:25:35 +0200 |
---|---|---|
committer | Necrodoom <doomed.war@gmail.com> | 2013-01-30 19:25:35 +0200 |
commit | 738ded7ae5ca9d9990ca2298cac3f91b6768665e (patch) | |
tree | a543fe65098409d9bd04e3d7830af13bca77e8b2 /EssentialsGroupManager | |
parent | 5535435215fc7cd98b7951ba71624ae6f9172734 (diff) | |
download | Essentials-738ded7ae5ca9d9990ca2298cac3f91b6768665e.tar Essentials-738ded7ae5ca9d9990ca2298cac3f91b6768665e.tar.gz Essentials-738ded7ae5ca9d9990ca2298cac3f91b6768665e.tar.lz Essentials-738ded7ae5ca9d9990ca2298cac3f91b6768665e.tar.xz Essentials-738ded7ae5ca9d9990ca2298cac3f91b6768665e.zip |
update commandblock usage deny message
Diffstat (limited to 'EssentialsGroupManager')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java index b99bebf63..4a9b65317 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java @@ -391,7 +391,8 @@ public class GroupManager extends JavaPlugin { // PREVENT GM COMMANDS BEING USED ON COMMANDBLOCKS if (sender instanceof BlockCommandSender && !isAllowCommandBlocks) { - console.sendMessage(ChatColor.RED + "GM Commands can not be called from CommandBlocks"); + 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); return true; } @@ -400,7 +401,7 @@ public class GroupManager extends JavaPlugin { senderPlayer = (Player) sender; if (!lastError.isEmpty() && !commandLabel.equalsIgnoreCase("manload")) { - sender.sendMessage(ChatColor.RED + "All commands are locked due to an error. " + ChatColor.BOLD + "" + ChatColor.UNDERLINE + "Check the log" + ChatColor.RESET + "" + ChatColor.RED + " and then try a '/manload'."); + GroupManager.logger.warning(ChatColor.RED + "All commands are locked due to an error. " + ChatColor.BOLD + "" + ChatColor.UNDERLINE + "Check the log" + ChatColor.RESET + "" + ChatColor.RED + " and then try a '/manload'."); return true; } |