From 61afd7b0843ff4a4438eb9f97c4ba29e57408aa5 Mon Sep 17 00:00:00 2001 From: DJtheRedstoner <52044242+DJtheRedstoner@users.noreply.github.com> Date: Wed, 25 Aug 2021 09:52:20 -0400 Subject: Revert "this is why we can't have nice things" This reverts commit 12888a9eb0469a5462e497a29eb4d3d15bb48f3c. --- .../commands/PerspectiveModCommand.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/main/java/me/djtheredstoner/perspectivemod/commands/PerspectiveModCommand.java (limited to 'src/main/java/me/djtheredstoner/perspectivemod/commands') diff --git a/src/main/java/me/djtheredstoner/perspectivemod/commands/PerspectiveModCommand.java b/src/main/java/me/djtheredstoner/perspectivemod/commands/PerspectiveModCommand.java new file mode 100644 index 0000000..00b0d27 --- /dev/null +++ b/src/main/java/me/djtheredstoner/perspectivemod/commands/PerspectiveModCommand.java @@ -0,0 +1,19 @@ +package me.djtheredstoner.perspectivemod.commands; + +import gg.essential.api.EssentialAPI; +import gg.essential.api.commands.Command; +import gg.essential.api.commands.DefaultHandler; +import me.djtheredstoner.perspectivemod.PerspectiveMod; + +public class PerspectiveModCommand extends Command { + + public PerspectiveModCommand(String name) { + super(name); + } + + @DefaultHandler + public void handle() { + EssentialAPI.getGuiUtil().openScreen(PerspectiveMod.instance.config.gui()); + } + +} -- cgit