From a4e8e1422a7ae6829a8822523c2818764c930851 Mon Sep 17 00:00:00 2001 From: Matthew Olsson Date: Sun, 1 Oct 2023 16:05:13 -0700 Subject: [PATCH] ClientListener: Fix command in messageSent not being prepended with '/' --- .../com/chattriggers/ctjs/internal/listeners/ClientListener.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/chattriggers/ctjs/internal/listeners/ClientListener.kt b/src/main/kotlin/com/chattriggers/ctjs/internal/listeners/ClientListener.kt index 74d2c9e1..a2c25df7 100644 --- a/src/main/kotlin/com/chattriggers/ctjs/internal/listeners/ClientListener.kt +++ b/src/main/kotlin/com/chattriggers/ctjs/internal/listeners/ClientListener.kt @@ -86,7 +86,7 @@ object ClientListener : Initializer { ClientSendMessageEvents.ALLOW_COMMAND.register { message -> val event = CancellableEvent() - TriggerType.MESSAGE_SENT.triggerAll(message, event) + TriggerType.MESSAGE_SENT.triggerAll("/$message", event) !event.isCancelled() }