diff --git a/SpigotCore_Main/src/de/steamwar/command/SWCommand.java b/SpigotCore_Main/src/de/steamwar/command/SWCommand.java index 708ed53..ac4fde8 100644 --- a/SpigotCore_Main/src/de/steamwar/command/SWCommand.java +++ b/SpigotCore_Main/src/de/steamwar/command/SWCommand.java @@ -36,7 +36,7 @@ import java.util.stream.Collectors; public abstract class SWCommand { - private final List help = new ArrayList<>(); + private List help = null; private final Command command; private final List commandList = new ArrayList<>(); @@ -226,7 +226,8 @@ public abstract class SWCommand { @Register(help = true) private void internalHelp(CommandSender sender, String... args) { - if (help.isEmpty()) { + if (help == null) { + help = new ArrayList<>(); commandList.forEach(subCommand -> { StringBuilder st = new StringBuilder(); st.append("§8/§7").append(command.getName()).append(" ");