Merge branch 'development' into FS-59

This commit is contained in:
Ryan
2020-12-28 22:51:21 +00:00
committed by GitHub
2 changed files with 14 additions and 12 deletions

View File

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