diff options
author | Alexander Schepp <schneeleo@gmail.com> | 2012-10-31 20:06:32 +0100 |
---|---|---|
committer | Alexander Schepp <schneeleo@gmail.com> | 2012-10-31 20:06:32 +0100 |
commit | 4d4779ecdc07eecbc585a1f619220a9515beb0ba (patch) | |
tree | 2e21da18fbd6d8ae943e06814a0eafcf1d66ef23 /EssentialsGroupManager/src/org/anjocaido | |
parent | 1c25d317dd6ae0e41c843c6c185f5b6eb0dfaf4d (diff) | |
download | Essentials-4d4779ecdc07eecbc585a1f619220a9515beb0ba.tar Essentials-4d4779ecdc07eecbc585a1f619220a9515beb0ba.tar.gz Essentials-4d4779ecdc07eecbc585a1f619220a9515beb0ba.tar.lz Essentials-4d4779ecdc07eecbc585a1f619220a9515beb0ba.tar.xz Essentials-4d4779ecdc07eecbc585a1f619220a9515beb0ba.zip |
Use the class, not the interface
This code will be changed later, once Elgarl updates the gm branch to 1.4
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java index a971dec88..d415182b0 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java @@ -381,7 +381,7 @@ public class GroupManager extends JavaPlugin { User senderUser = null; boolean isOpOverride = config.isOpOverride(); - if (sender.getClass().getName().equals("org.bukkit.command.BlockCommandSender")) { + if (sender.getClass().getName().equals("org.bukkit.craftbukkit.command.CraftBlockCommandSender")) { sender.sendMessage(ChatColor.RED + "GM Commands can not be called from CommandBlocks"); return true; } |