mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
Add check command for disabling or enabling checks on the fly
This commit is contained in:
1 parent
478e325026
commit
14aa2a8905
5 files changed
+97
-4
No files matched your search
@@ -53,7 +53,7 @@ public class CheckManager {
|
||||
* @param type The CheckType to enable
|
||||
*/
|
||||
public void activateCheck(CheckType type, String className) {
|
||||
if (isActive(type)) {
|
||||
if (!isActive(type)) {
|
||||
manager.getLoggingManager().logToFile("The " + type.toString() + " check was activated by " + className + ".");
|
||||
checkIgnoreList.remove(type);
|
||||
}
|
||||
@@ -65,7 +65,7 @@ public class CheckManager {
|
||||
* @param type The CheckType to disable
|
||||
*/
|
||||
public void deactivateCheck(CheckType type, String className) {
|
||||
if (!isActive(type)) {
|
||||
if (isActive(type)) {
|
||||
manager.getLoggingManager().logToFile("The " + type.toString() + " check was deactivated by " + className + ".");
|
||||
checkIgnoreList.add(type);
|
||||
disabled++;
|
||||
|
||||
Reference in new issue
Block a user