summaryrefslogtreecommitdiff
path: root/src/main/kotlin/event/CommandRegistrationEvent.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/event/CommandRegistrationEvent.kt')
-rw-r--r--src/main/kotlin/event/CommandRegistrationEvent.kt10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/kotlin/event/CommandRegistrationEvent.kt b/src/main/kotlin/event/CommandRegistrationEvent.kt
new file mode 100644
index 0000000..49bc637
--- /dev/null
+++ b/src/main/kotlin/event/CommandRegistrationEvent.kt
@@ -0,0 +1,10 @@
+package moe.nea.ultranotifier.event
+
+import com.mojang.brigadier.CommandDispatcher
+import moe.nea.ultranotifier.commands.UltraCommandSource
+
+/**
+ * Fired whenever commands need to be registered. This may be multiple times during each launch. Old commands will be
+ * automatically unregistered first.
+ */
+class CommandRegistrationEvent(val dispatcher: CommandDispatcher<UltraCommandSource>) : UltraEvent()