mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
don't allow adding player impostors to admin list (#132)
This commit is contained in:
parent
843a6ce88f
commit
4dc63fb756
@ -181,11 +181,17 @@ 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 (admin == null) // New admin
|
||||||
{
|
{
|
||||||
if (plugin.mbl.isMasterBuilderImpostor(player))
|
if (plugin.mbl.isMasterBuilderImpostor(player))
|
||||||
{
|
{
|
||||||
msg("This player was labeled as a Master Builder impostor and is not an admin, therefore they can not be added to the admin list.", ChatColor.RED);
|
msg("This player was labeled as a Master Builder impostor and is not an admin, therefore they cannot be added to the admin list.", ChatColor.RED);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (player == null)
|
if (player == null)
|
||||||
|
Loading…
Reference in New Issue
Block a user