mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 22:15:28 +00:00
Don't do things with the check API if they are already done
This commit is contained in:
1 parent
447ac6bdec
commit
81378d3b54
1 file changed
+12
-6
@@ -54,9 +54,12 @@ public class CheckManager
|
|||||||
|
|
||||||
public void deactivateCheck(CheckType type)
|
public void deactivateCheck(CheckType type)
|
||||||
{
|
{
|
||||||
manager.log("The " + type.toString() + " check was deactivated.");
|
if (!checkIgnoreList.contains(type))
|
||||||
checkIgnoreList.add(type);
|
{
|
||||||
disabled++;
|
manager.log("The " + type.toString() + " check was deactivated.");
|
||||||
|
checkIgnoreList.add(type);
|
||||||
|
disabled++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isActive(CheckType type)
|
public boolean isActive(CheckType type)
|
||||||
@@ -66,9 +69,12 @@ public class CheckManager
|
|||||||
|
|
||||||
public void exemptPlayer(Player player, CheckType type)
|
public void exemptPlayer(Player player, CheckType type)
|
||||||
{
|
{
|
||||||
manager.log(player.getName() + " was exempted from the " + type.toString() + " check.");
|
if (!exemptList.containsEntry(player.getName(), type))
|
||||||
exemptList.put(player.getName(), type);
|
{
|
||||||
exempt++;
|
manager.log(player.getName() + " was exempted from the " + type.toString() + " check.");
|
||||||
|
exemptList.put(player.getName(), type);
|
||||||
|
exempt++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void unexemptPlayer(Player player, CheckType type)
|
public void unexemptPlayer(Player player, CheckType type)
|
||||||
|
|||||||
Reference in new issue
Block a user