File tree Expand file tree Collapse file tree 3 files changed +196
-84
lines changed
java/net/wurstclient/hacks
resources/assets/wurst/translations Expand file tree Collapse file tree 3 files changed +196
-84
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments