mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-29 03:36:42 +00:00
Fix players being marked as an impostor when the Discord verification system is disabled
This commit is contained in:
@ -156,12 +156,13 @@ public class PlayerList extends FreedomService
|
||||
public Boolean isPlayerImpostor(Player player)
|
||||
{
|
||||
PlayerData playerData = getData(player);
|
||||
return !plugin.sl.isStaff(player)
|
||||
return plugin.dc.enabled
|
||||
&& !plugin.sl.isStaff(player)
|
||||
&& (playerData.hasVerification())
|
||||
&& !playerData.getIps().contains(FUtil.getIp(player));
|
||||
}
|
||||
|
||||
public boolean isImposter(Player player)
|
||||
public boolean IsImpostor(Player player)
|
||||
{
|
||||
return isPlayerImpostor(player) || plugin.sl.isStaffImpostor(player);
|
||||
}
|
||||
|
Reference in New Issue
Block a user