You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
privateval limit by setting("Limit", 99, 1..1000, 1, "The maximum amount of packets to send per given time interval", unit =" packets")
45
+
privateval page by setting("Page", Page.General)
46
+
47
+
privateval limit by setting("Limit", 99, 1..1000, 1, "The maximum amount of packets to send per given time interval", unit =" packets") { page ==Page.General }
50
48
.onValueChange { _, to -> packetQueue.setSizeLimit(to) }
51
49
52
-
privateval interval by setting("Duration", 4000L, 1L..10000L, 50L, "The interval / duration in milliseconds to limit packets for", unit =" ms")
50
+
privateval interval by setting("Duration", 4000L, 1L..10000L, 50L, "The interval / duration in milliseconds to limit packets for", unit =" ms") { page ==Page.General }
53
51
.onValueChange { _, to -> packetQueue.setDecayTime(to) }
privateval limitAllPackets by setting("Limit All", false, "Limit all send packets") { page ==Page.General }
63
+
privateval ignorePackets by setting("Ignore Packets", defaultIgnorePackets.mapNotNull { it.simpleName }, "Packets to ignore when limiting") { page ==Page.General&& limitAllPackets }
64
+
65
+
privateval limitClicks by setting("Clicks Limit", true, "Limits the amount of click packets you can send to prevent kicks on certain servers.") { page ==Page.Clicks }
.onValueChange { _, to -> clickPacketQueue.setDecayTime((to *1000).toLong()) }
68
+
privateval limitClickRate by setting("Click Limit Rate", 19, 1..40, 1, "Click limit rate", unit =" packets/sec") { page ==Page.Clicks&& limitClicks }
69
+
.onValueChange { _, to -> clickPacketQueue.setSizeLimit((limitClickWindowSize * to).toInt()) }
70
+
privateval limitClickRender by setting("Render Limit in Container", true, "Render the amount of clicks remaining in the container screen") { page ==Page.Clicks&& limitClicks }
0 commit comments