blob: 7b489e773591c8a08e78a2bd9f5f3b2cff98eb16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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.save()
}
}
|