We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 438d28b commit f21b526Copy full SHA for f21b526
src/main/kotlin/com/lambda/client/module/modules/misc/AntiAFK.kt
@@ -86,8 +86,9 @@ object AntiAFK : Module(
86
init {
87
listener<PacketEvent.Receive> {
88
if (!autoReply || it.packet !is SPacketChat) return@listener
89
- if (MessageDetection.Direct.RECEIVE detect it.packet.chatComponent.unformattedText) {
90
- sendServerMessage("/r $replyMessage")
+ val message = it.packet.chatComponent.unformattedText
+ if (MessageDetection.Direct.RECEIVE detect message) {
91
+ if (!message.contains(replyMessage)) sendServerMessage("/r $replyMessage")
92
}
93
94
0 commit comments