Make gcmd not work on admins

This commit is contained in:
Elmon11 2020-12-28 00:04:57 +01:00 committed by GitHub
parent 210b0f8b43
commit 402a6be5ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,6 +33,12 @@ public class Command_gcmd extends FreedomCommand
return true; return true;
} }
if (plugin.al.isAdmin(player))
{
msg(ChatColor.RED + "You can not use gcmd on admins");
return true;
}
try try
{ {
msg("Sending command as " + player.getName() + ": " + outCommand); msg("Sending command as " + player.getName() + ": " + outCommand);