Prevent developers from using /punish

This commit is contained in:
cnr 2016-06-01 00:47:22 -05:00
parent 84853a1f9a
commit 750120c106

View File

@ -24,7 +24,13 @@ public class PunishCommand extends CommandBase<Punish>
@Override
public void Execute(final Player caller, String[] args)
{
{
Rank playerRank = this.Plugin.GetClients().Get(caller).GetRank();
if (playerRank == Rank.JNR_DEV || playerRank == Rank.DEVELOPER)
{
return;
}
if (args == null || args.length < 2)
{
Plugin.Help(caller);