From 67b7f431e0de387dce3a86cef8cdc097116c2384 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Fri, 12 Mar 2021 17:38:26 +0100 Subject: [PATCH] Simplify SWCommand Constructor --- SpigotCore_Main/src/de/steamwar/command/SWCommand.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SpigotCore_Main/src/de/steamwar/command/SWCommand.java b/SpigotCore_Main/src/de/steamwar/command/SWCommand.java index 14522e1..52b8da1 100644 --- a/SpigotCore_Main/src/de/steamwar/command/SWCommand.java +++ b/SpigotCore_Main/src/de/steamwar/command/SWCommand.java @@ -37,6 +37,10 @@ public abstract class SWCommand { private final Set tabCompleteSet = new HashSet<>(); private Consumer helpMessage = sender -> {}; + protected SWCommand(String command) { + this(command, new String[0]); + } + protected SWCommand(String command, String... aliases) { SWCommandUtils.commandMap.register("steamwar", new Command(command, "", "/" + command, Arrays.asList(aliases)) { @Override