We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3af2f41 commit 156d16cCopy full SHA for 156d16c
1 file changed
common/src/main/kotlin/com/lambda/module/modules/combat/FakePlayer.kt
@@ -18,6 +18,8 @@
18
package com.lambda.module.modules.combat
19
20
import com.lambda.context.SafeContext
21
+import com.lambda.event.events.ConnectionEvent
22
+import com.lambda.event.listener.SafeListener.Companion.listen
23
import com.lambda.http.Method
24
import com.lambda.http.request
25
import com.lambda.module.Module
@@ -71,6 +73,10 @@ object FakePlayer : Module(
71
73
}
72
74
75
onShutdown { disable() }
76
+
77
+ listen<ConnectionEvent.Disconnect> {
78
+ disable()
79
+ }
80
81
82
private fun SafeContext.spawnPlayer(profile: GameProfile) {
0 commit comments