diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_gcmd.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_gcmd.java index c0b007e4..410fb8b4 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_gcmd.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_gcmd.java @@ -3,6 +3,7 @@ package me.totalfreedom.totalfreedommod.command; import me.totalfreedom.totalfreedommod.rank.Rank; import org.apache.commons.lang3.StringUtils; import org.bukkit.command.Command; +import org.bukkit.ChatColor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; @@ -32,6 +33,12 @@ public class Command_gcmd extends FreedomCommand { return true; } + + if (plugin.al.isAdmin(player)) + { + msg(ChatColor.RED + "You can not use gcmd on admins"); + return true; + } try { @@ -52,4 +59,4 @@ public class Command_gcmd extends FreedomCommand return true; } -} \ No newline at end of file +}