From cc4a11c7943d9036dc71679eaa531832cd2a2f0c Mon Sep 17 00:00:00 2001 From: Wyvest <45589059+Wyvest@users.noreply.github.com> Date: Sat, 1 Jan 2022 22:11:34 +0700 Subject: Chattils 1.0.0 --- .../cc/woverflow/chattils/command/ChattilsCommand.kt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/main/kotlin/cc/woverflow/chattils/command/ChattilsCommand.kt (limited to 'src/main/kotlin/cc/woverflow/chattils/command') 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 -- cgit