mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 14:38:45 +00:00
Migrate enable-in list to disable-in list
This commit is contained in:
1 parent
9714cfd767
commit
493a9c8d33
2 files changed
+31
-14
No files matched your search
@@ -56,7 +56,7 @@ public class CheckManager
|
||||
public void deactivateCheck(CheckType type)
|
||||
{
|
||||
if (!isActive(type))
|
||||
{
|
||||
{
|
||||
manager.log("The " + type.toString() + " check was deactivated.");
|
||||
checkIgnoreList.add(type);
|
||||
disabled++;
|
||||
@@ -95,7 +95,7 @@ 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());
|
||||
@@ -105,7 +105,7 @@ public class CheckManager
|
||||
{
|
||||
return isActive(type) && manager.getConfiguration().checkInWorld(player.getWorld()) && !isExempt(player, type) && !type.checkPermission(player) && isOnline(player) && !isOpExempt(player);
|
||||
}
|
||||
|
||||
|
||||
public boolean isOnline(Player player)
|
||||
{
|
||||
// Check if the player is on the user list, e.g. is not an NPC
|
||||
|
||||
Reference in new issue
Block a user