summaryrefslogtreecommitdiff
path: root/src/main/kotlin/tech/thatgravyboat/rewardclaim/Command.kt
blob: 97cc75a5a87bb9e4e62ffd2677369f16d026e942 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package tech.thatgravyboat.rewardclaim

import gg.essential.api.EssentialAPI
import gg.essential.api.commands.Command
import gg.essential.api.commands.DefaultHandler
import gg.essential.api.commands.SubCommand

class Command : Command("rewardclaim") {

    @DefaultHandler
    fun handle() {
        EssentialAPI.getGuiUtil().openScreen(Config.gui())
    }

    @SubCommand("debug", description = "Toggles debug mode, do not turn this unless told otherwise by a dev.")
    fun debugMode() {
        RewardClaim.debugMode = !RewardClaim.debugMode
    }
}