Prevent developers from using /punish
This commit is contained in:
parent
84853a1f9a
commit
750120c106
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user