aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/dulkirfabric/events
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/events')
-rw-r--r--src/main/kotlin/com/dulkirfabric/events/chat/ChatEvents.kt14
-rw-r--r--src/main/kotlin/com/dulkirfabric/events/chat/ChatReceivedEvent.kt7
2 files changed, 14 insertions, 7 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/events/chat/ChatEvents.kt b/src/main/kotlin/com/dulkirfabric/events/chat/ChatEvents.kt
new file mode 100644
index 0000000..2f57085
--- /dev/null
+++ b/src/main/kotlin/com/dulkirfabric/events/chat/ChatEvents.kt
@@ -0,0 +1,14 @@
+package com.dulkirfabric.events.chat
+
+import com.dulkirfabric.events.base.CancellableEvent
+import com.dulkirfabric.events.base.ModifyTextEvent
+import net.minecraft.text.Text
+
+class ChatEvents {
+ data class
+ AllowChat(val message: Text) : CancellableEvent()
+
+ data class
+ ModifyChat(val message: Text): ModifyTextEvent(message)
+
+} \ No newline at end of file
diff --git a/src/main/kotlin/com/dulkirfabric/events/chat/ChatReceivedEvent.kt b/src/main/kotlin/com/dulkirfabric/events/chat/ChatReceivedEvent.kt
deleted file mode 100644
index 4c268ab..0000000
--- a/src/main/kotlin/com/dulkirfabric/events/chat/ChatReceivedEvent.kt
+++ /dev/null
@@ -1,7 +0,0 @@
-package com.dulkirfabric.events.chat
-
-import com.dulkirfabric.events.base.CancellableEvent
-import net.minecraft.text.Text
-
-data class
-ChatReceivedEvent(val message: Text): CancellableEvent() \ No newline at end of file