Skip to content

Commit dceab3c

Browse files
committed
LivestreamDetector & AntiCheatDetector Updates
1 parent 7947d4c commit dceab3c

File tree

3 files changed

+196
-84
lines changed

3 files changed

+196
-84
lines changed

src/main/java/net/wurstclient/hacks/AntiCheatDetectHack.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,16 @@ public final class AntiCheatDetectHack extends Hack
2121
private final CheckboxSetting setbackDetection = new CheckboxSetting(
2222
"SetbackDetection",
2323
"Disables packet-based hacks when the server sends a setback.", true);
24+
private final CheckboxSetting suppressUnknown =
25+
new CheckboxSetting("Suppress unknown alerts",
26+
"description.wurst.setting.anticheatdetect.suppress_unknown", true);
2427

2528
public AntiCheatDetectHack()
2629
{
2730
super("AntiCheatDetect");
2831
setCategory(Category.OTHER);
2932
addSetting(setbackDetection);
33+
addSetting(suppressUnknown);
3034
}
3135

3236
@Override
@@ -54,6 +58,9 @@ private void alertAboutAntiCheat()
5458
return;
5559
}
5660

61+
if("Unknown".equalsIgnoreCase(antiCheat) && suppressUnknown.isChecked())
62+
return;
63+
5764
long now = System.currentTimeMillis();
5865
if(antiCheat.equalsIgnoreCase(lastAnnounced)
5966
&& now - lastAnnouncedMs < ANNOUNCE_COOLDOWN_MS)

0 commit comments

Comments
 (0)