mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-07-14 00:15:06 +00: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:
parent
1c25d317dd
commit
4d4779ecdc
|
@ -381,7 +381,7 @@ public class GroupManager extends JavaPlugin {
|
||||||
User senderUser = null;
|
User senderUser = null;
|
||||||
boolean isOpOverride = config.isOpOverride();
|
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");
|
sender.sendMessage(ChatColor.RED + "GM Commands can not be called from CommandBlocks");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue