aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/utils/commands/CommandHelper.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/utils/commands/CommandHelper.java')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/utils/commands/CommandHelper.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/utils/commands/CommandHelper.java b/src/main/java/cc/polyfrost/oneconfig/utils/commands/CommandHelper.java
new file mode 100644
index 0000000..bc57fc2
--- /dev/null
+++ b/src/main/java/cc/polyfrost/oneconfig/utils/commands/CommandHelper.java
@@ -0,0 +1,19 @@
+package cc.polyfrost.oneconfig.utils.commands;
+
+/**
+ * A helper class for commands.
+ * Extend this class and run {@link CommandHelper#preload()} (which does nothing,
+ * just makes loading look nicer lol)
+ *
+ * @see cc.polyfrost.oneconfig.utils.commands.annotations.Command
+ */
+public abstract class CommandHelper {
+
+ public CommandHelper() {
+ CommandManager.registerCommand(this);
+ }
+
+ public void preload() {
+
+ }
+}