From 6643e0f7bf54ddab115e73ec47f3a9f602d9a99d Mon Sep 17 00:00:00 2001 From: Kyle <65318126+Budderman18@users.noreply.github.com> Date: Thu, 20 Jun 2024 20:51:44 -0400 Subject: [PATCH 1/3] Config option to keep plugin enabled if no anticheat is found Useful if your anticheat doesn't work at the moment but you still want people to use the /report command --- .../java/me/justindevb/anticheatreplay/AntiCheatReplay.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/justindevb/anticheatreplay/AntiCheatReplay.java b/src/main/java/me/justindevb/anticheatreplay/AntiCheatReplay.java index 313b7fb..af933f7 100644 --- a/src/main/java/me/justindevb/anticheatreplay/AntiCheatReplay.java +++ b/src/main/java/me/justindevb/anticheatreplay/AntiCheatReplay.java @@ -83,7 +83,7 @@ private void findCompatAntiCheat() { } } - if (activeListeners.isEmpty()) { + if (activeListeners.isEmpty() && !getConfig().getBoolean(Keep-Enabled-With-No-Anticheat)) { disablePlugin(); } } @@ -311,6 +311,7 @@ private void initGeneralConfigSettings() { config.addDefault("General.Always-Save-Recording", false); config.addDefault("General.Report-Cooldown", 3); config.addDefault("General.Report-Enabled", true); + config.addDefault("Keep-Enabled-With-No-Anticheat", false); } /** From 798c00ace4abef69c627688de6748870f83d8fe7 Mon Sep 17 00:00:00 2001 From: Kyle <65318126+Budderman18@users.noreply.github.com> Date: Thu, 20 Jun 2024 21:01:58 -0400 Subject: [PATCH 2/3] missing quotes --- .../java/me/justindevb/anticheatreplay/AntiCheatReplay.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/justindevb/anticheatreplay/AntiCheatReplay.java b/src/main/java/me/justindevb/anticheatreplay/AntiCheatReplay.java index af933f7..e0bb1b8 100644 --- a/src/main/java/me/justindevb/anticheatreplay/AntiCheatReplay.java +++ b/src/main/java/me/justindevb/anticheatreplay/AntiCheatReplay.java @@ -83,7 +83,7 @@ private void findCompatAntiCheat() { } } - if (activeListeners.isEmpty() && !getConfig().getBoolean(Keep-Enabled-With-No-Anticheat)) { + if (activeListeners.isEmpty() && !getConfig().getBoolean("Keep-Enabled-With-No-Anticheat")) { disablePlugin(); } } From e7705f0bc4806cfa872803ae4537a8ed301db547 Mon Sep 17 00:00:00 2001 From: Kyle <65318126+Budderman18@users.noreply.github.com> Date: Thu, 20 Jun 2024 21:14:07 -0400 Subject: [PATCH 3/3] forgot general --- .../java/me/justindevb/anticheatreplay/AntiCheatReplay.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/justindevb/anticheatreplay/AntiCheatReplay.java b/src/main/java/me/justindevb/anticheatreplay/AntiCheatReplay.java index e0bb1b8..1163f8e 100644 --- a/src/main/java/me/justindevb/anticheatreplay/AntiCheatReplay.java +++ b/src/main/java/me/justindevb/anticheatreplay/AntiCheatReplay.java @@ -83,7 +83,7 @@ private void findCompatAntiCheat() { } } - if (activeListeners.isEmpty() && !getConfig().getBoolean("Keep-Enabled-With-No-Anticheat")) { + if (activeListeners.isEmpty() && !getConfig().getBoolean("General.Keep-Enabled-With-No-Anticheat")) { disablePlugin(); } }