aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/dulkirmod/command/FairyCommand.kt
blob: a6c1b005edf8146b787348b918a41c274ac4ff59 (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 FairyCommand : ClientCommandBase("fairy") {
    @Throws(CommandException::class)
    override fun processCommand(sender: ICommandSender, args: Array<String>) {
        config.hideHealerFairy = !config.hideHealerFairy
        TextUtils.toggledMessage("Healer Fairy Hider", config.hideHealerFairy)
        config.markDirty()
        config.writeData()
    }
}