mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-08-05 19:39:28 +00:00
Make gcmd not work on admins
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user