mirror of
https://github.com/TotalFreedomMC/TotalFreedomMod.git
synced 2025-08-05 03:53:00 +00:00
Make gcmd not work on admins
This commit is contained in:
parent
210b0f8b43
commit
402a6be5ad
1 changed files with 7 additions and 1 deletions
|
@ -32,6 +32,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
|
||||||
{
|
{
|
||||||
|
@ -52,4 +58,4 @@ public class Command_gcmd extends FreedomCommand
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue