From a86bfcaa6b8dc3adb79e05621a23cc8b72e48de9 Mon Sep 17 00:00:00 2001 From: Jake Moore Date: Sat, 18 Nov 2023 23:51:03 -0800 Subject: [PATCH] v2.0.0.3 -More KamiSubCommands constructors Took 19 minutes --- pom.xml | 2 +- .../kamicommon/command/KamiSubCommands.java | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 4b1ac8bd..02ee1b4b 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.kamikazejam kamicommon - 2.0.0.2 + 2.0.0.3 jar KamiCommon diff --git a/src/main/java/com/kamikazejam/kamicommon/command/KamiSubCommands.java b/src/main/java/com/kamikazejam/kamicommon/command/KamiSubCommands.java index 21bba676..4fce60f4 100644 --- a/src/main/java/com/kamikazejam/kamicommon/command/KamiSubCommands.java +++ b/src/main/java/com/kamikazejam/kamicommon/command/KamiSubCommands.java @@ -14,6 +14,18 @@ public abstract class KamiSubCommands { private final boolean versionCmd, updateCmd; private final List subCommands = new ArrayList<>(); + public KamiSubCommands(JavaPlugin plugin) { + this.plugin = plugin; + this.versionCmd = false; + this.updateCmd = false; + } + + public KamiSubCommands(JavaPlugin plugin, boolean versionCmd) { + this.plugin = plugin; + this.versionCmd = versionCmd; + this.updateCmd = false; + } + public KamiSubCommands(JavaPlugin plugin, boolean versionCmd, boolean updateCmd) { this.plugin = plugin; this.versionCmd = versionCmd;