don't allow adding player impostors to admin list (#132)

This commit is contained in:
Super_ 2019-02-09 12:30:02 -05:00 committed by Lemon
parent 843a6ce88f
commit 4dc63fb756

View File

@ -181,6 +181,12 @@ public class Command_saconfig extends FreedomCommand
}
}
if (plugin.pv.isPlayerImpostor(player))
{
msg("This player was labeled as a Player impostor and is not an admin, therefore they cannot be added to the admin list.", ChatColor.RED);
return true;
}
if (admin == null) // New admin
{
if (plugin.mbl.isMasterBuilderImpostor(player))