From a2c0db53800c353b3b8154964645e7d6499d17ab Mon Sep 17 00:00:00 2001 From: ThatGravyBoat Date: Mon, 27 Sep 2021 18:24:10 -0230 Subject: Updated build.gradle to make built jars need the minimal amount of shadowed libs. Added Config and a config command. - Made it so that you can disable the confirmation popup. Fixed some classes have the wrong names. Added a backup plan to disable the mod via the ExternalConfiguration. --- src/main/kotlin/tech/thatgravyboat/rewardclaim/Command.kt | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/main/kotlin/tech/thatgravyboat/rewardclaim/Command.kt (limited to 'src/main/kotlin/tech/thatgravyboat/rewardclaim/Command.kt') diff --git a/src/main/kotlin/tech/thatgravyboat/rewardclaim/Command.kt b/src/main/kotlin/tech/thatgravyboat/rewardclaim/Command.kt new file mode 100644 index 0000000..8ba49e0 --- /dev/null +++ b/src/main/kotlin/tech/thatgravyboat/rewardclaim/Command.kt @@ -0,0 +1,13 @@ +package tech.thatgravyboat.rewardclaim + +import gg.essential.api.EssentialAPI +import gg.essential.api.commands.Command +import gg.essential.api.commands.DefaultHandler + +class Command : Command("rewardclaim") { + + @DefaultHandler + fun handle() { + EssentialAPI.getGuiUtil().openScreen(Config.gui()) + } +} \ No newline at end of file -- cgit