diff options
Diffstat (limited to 'src/main/kotlin/cc/woverflow/chattils/command')
-rw-r--r-- | src/main/kotlin/cc/woverflow/chattils/command/ChattilsCommand.kt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/kotlin/cc/woverflow/chattils/command/ChattilsCommand.kt b/src/main/kotlin/cc/woverflow/chattils/command/ChattilsCommand.kt new file mode 100644 index 0000000..aa162e1 --- /dev/null +++ b/src/main/kotlin/cc/woverflow/chattils/command/ChattilsCommand.kt @@ -0,0 +1,15 @@ +package cc.woverflow.chattils.command + +import cc.woverflow.chattils.Chattils +import cc.woverflow.chattils.config.ChattilsConfig +import gg.essential.api.EssentialAPI +import gg.essential.api.commands.Command +import gg.essential.api.commands.DefaultHandler + +object ChattilsCommand : Command(Chattils.ID, true) { + + @DefaultHandler + fun handle() { + EssentialAPI.getGuiUtil().openScreen(ChattilsConfig.gui()) + } +}
\ No newline at end of file |