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() }