1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-11 09:05:01 +02:00

Use the class, not the interface

This code will be changed later, once Elgarl updates the gm branch to 1.4
This commit is contained in:
Alexander Schepp
2012-10-31 20:06:32 +01:00
parent 5d494d0ae7
commit b5e166b280

View File

@@ -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;
}