aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/dulkirmod/command/ResetSlayerTracker.kt
blob: 7d1d1fd4a588a8bf80fe54128ece8c58454b5dca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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.")
    }
}