mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 06:28:52 +00:00
Added optional op-exemption from checks.
This commit is contained in:
1 parent
5e9b7b4ef0
commit
298fecd749
4 files changed
+17
-10
No files matched your search
@@ -95,10 +95,15 @@ public class CheckManager
|
||||
{
|
||||
return exemptList.containsKey(player.getName()) ? exemptList.get(player.getName()).contains(type) : false;
|
||||
}
|
||||
|
||||
public boolean isOpExempt(Player player)
|
||||
{
|
||||
return (this.manager.getConfiguration().opExempt() && player.isOp());
|
||||
}
|
||||
|
||||
public boolean willCheck(Player player, CheckType type)
|
||||
{
|
||||
return isActive(type) && manager.getConfiguration().checkInWorld(player.getWorld()) && !isExempt(player, type) && !type.checkPermission(player) && isOnline(player);
|
||||
return isActive(type) && manager.getConfiguration().checkInWorld(player.getWorld()) && !isExempt(player, type) && !type.checkPermission(player) && isOnline(player) && !isOpExempt(player);
|
||||
}
|
||||
|
||||
public boolean isOnline(Player player)
|
||||
|
||||
Reference in new issue
Block a user