From 69db365139428bd0c433ccbb9d31dfded7216572 Mon Sep 17 00:00:00 2001 From: inglettronald Date: Sat, 15 Jul 2023 23:07:15 -0500 Subject: Added basic slayer tracker --- src/main/kotlin/dulkirmod/command/ResetSlayerTracker.kt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/main/kotlin/dulkirmod/command/ResetSlayerTracker.kt (limited to 'src/main/kotlin/dulkirmod/command') 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) { + MinecraftForge.EVENT_BUS.post(SlayerTypeChangeEvent()) + TextUtils.info("ยง6Slayer Tracker session data reset.") + } +} \ No newline at end of file -- cgit