aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/djtheredstoner/perspectivemod/commands/PerspectiveModCommand.java
diff options
context:
space:
mode:
authorDJtheRedstoner <52044242+DJtheRedstoner@users.noreply.github.com>2021-08-25 09:52:20 -0400
committerDJtheRedstoner <52044242+DJtheRedstoner@users.noreply.github.com>2021-08-25 09:52:20 -0400
commit61afd7b0843ff4a4438eb9f97c4ba29e57408aa5 (patch)
tree3fa8f89498d01cb094d9bfc4d9c09ab47c474f5b /src/main/java/me/djtheredstoner/perspectivemod/commands/PerspectiveModCommand.java
parent12888a9eb0469a5462e497a29eb4d3d15bb48f3c (diff)
downloadPerspectiveModv4-61afd7b0843ff4a4438eb9f97c4ba29e57408aa5.tar.gz
PerspectiveModv4-61afd7b0843ff4a4438eb9f97c4ba29e57408aa5.tar.bz2
PerspectiveModv4-61afd7b0843ff4a4438eb9f97c4ba29e57408aa5.zip
Revert "this is why we can't have nice things"
This reverts commit 12888a9eb0469a5462e497a29eb4d3d15bb48f3c.
Diffstat (limited to 'src/main/java/me/djtheredstoner/perspectivemod/commands/PerspectiveModCommand.java')
-rw-r--r--src/main/java/me/djtheredstoner/perspectivemod/commands/PerspectiveModCommand.java19
1 files changed, 19 insertions, 0 deletions
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());
+ }
+
+}