summaryrefslogtreecommitdiffstats
path: root/EssentialsGroupManager/src
diff options
context:
space:
mode:
authorElgarL <ElgarL@palmergames.com>2012-11-13 10:17:15 +0000
committerElgarL <ElgarL@palmergames.com>2012-11-13 10:17:15 +0000
commit269cf85457362af5dfd486cdc43d652d57f6c8d7 (patch)
tree9fce2929ea5f84fdc9cdb4d7cfda023ddb99e09a /EssentialsGroupManager/src
parenta7aa8be37a1bd3e4432d39d2a7e7666ff2b3ca98 (diff)
downloadEssentials-269cf85457362af5dfd486cdc43d652d57f6c8d7.tar
Essentials-269cf85457362af5dfd486cdc43d652d57f6c8d7.tar.gz
Essentials-269cf85457362af5dfd486cdc43d652d57f6c8d7.tar.lz
Essentials-269cf85457362af5dfd486cdc43d652d57f6c8d7.tar.xz
Essentials-269cf85457362af5dfd486cdc43d652d57f6c8d7.zip
Update bukkit.jar to #1593 in lib so we can reference the new
interfaces.
Diffstat (limited to 'EssentialsGroupManager/src')
-rw-r--r--EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java3
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 1f19f32bd..f38f91b8e 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.command.BlockCommandSender;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.command.ConsoleCommandSender;
@@ -383,7 +384,7 @@ public class GroupManager extends JavaPlugin {
boolean isOpOverride = config.isOpOverride();
// PREVENT GM COMMANDS BEING USED ON COMMANDBLOCKS
- if (sender.getClass().getName().equals("org.bukkit.command.BlockCommandSender")) {
+ if (sender instanceof BlockCommandSender) {
sender.sendMessage(ChatColor.RED + "GM Commands can not be called from CommandBlocks");
return true;
}