aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/dulkirmod/command/EnchantRuneCommand.kt
blob: 36e8b698e1368ad6d9e5973702e514b9ee9060ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package dulkirmod.command

import dulkirmod.DulkirMod.Companion.config
import dulkirmod.utils.TextUtils
import net.minecraft.command.CommandException
import net.minecraft.command.ICommandSender

class EnchantRuneCommand : ClientCommandBase("enchantrune") {
    @Throws(CommandException::class)
    override fun processCommand(sender: ICommandSender, args: Array<String>) {
        config.hideEnchantRune = !config.hideEnchantRune
        TextUtils.toggledMessage("Enchant Rune Hider", config.hideEnchantRune)
        config.markDirty()
        config.writeData()
    }
}