aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/dulkirmod/command
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/dulkirmod/command')
-rw-r--r--src/main/kotlin/dulkirmod/command/ResetSlayerTracker.kt15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/kotlin/dulkirmod/command/ResetSlayerTracker.kt b/src/main/kotlin/dulkirmod/command/ResetSlayerTracker.kt
new file mode 100644
index 0000000..7d1d1fd
--- /dev/null
+++ b/src/main/kotlin/dulkirmod/command/ResetSlayerTracker.kt
@@ -0,0 +1,15 @@
+package dulkirmod.command
+
+import dulkirmod.events.SlayerTypeChangeEvent
+import dulkirmod.utils.TextUtils
+import net.minecraft.command.CommandException
+import net.minecraft.command.ICommandSender
+import net.minecraftforge.common.MinecraftForge
+
+class ResetSlayerTracker : ClientCommandBase("dsr") {
+ @Throws(CommandException::class)
+ override fun processCommand(sender: ICommandSender, args: Array<String>) {
+ MinecraftForge.EVENT_BUS.post(SlayerTypeChangeEvent())
+ TextUtils.info("ยง6Slayer Tracker session data reset.")
+ }
+} \ No newline at end of file