diff options
author | inglettronald <inglettronald@gmail.com> | 2023-07-15 23:07:15 -0500 |
---|---|---|
committer | inglettronald <inglettronald@gmail.com> | 2023-07-15 23:07:15 -0500 |
commit | 69db365139428bd0c433ccbb9d31dfded7216572 (patch) | |
tree | e0f06d3f55b2e451489187eddaf531848f360505 /src/main/kotlin/dulkirmod/command | |
parent | 7ce99bd61bb8cbcd4f4bc81a2325bfa26847baf1 (diff) | |
download | DulkirMod-69db365139428bd0c433ccbb9d31dfded7216572.tar.gz DulkirMod-69db365139428bd0c433ccbb9d31dfded7216572.tar.bz2 DulkirMod-69db365139428bd0c433ccbb9d31dfded7216572.zip |
Added basic slayer tracker
Diffstat (limited to 'src/main/kotlin/dulkirmod/command')
-rw-r--r-- | src/main/kotlin/dulkirmod/command/ResetSlayerTracker.kt | 15 |
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 |