From e7beaa2b0f637564f9d18cbd6d14fa3dca6cec64 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Tue, 30 Mar 2021 10:10:21 +0200 Subject: [PATCH] Update SWCommand list --- SpigotCore_Main/src/de/steamwar/command/SWCommand.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SpigotCore_Main/src/de/steamwar/command/SWCommand.java b/SpigotCore_Main/src/de/steamwar/command/SWCommand.java index 51353a9..70e7443 100644 --- a/SpigotCore_Main/src/de/steamwar/command/SWCommand.java +++ b/SpigotCore_Main/src/de/steamwar/command/SWCommand.java @@ -34,8 +34,8 @@ import java.util.logging.Level; public abstract class SWCommand { private final Command command; - private final LinkedList commandSet = new LinkedList<>(); - private final LinkedList commandHelpSet = new LinkedList<>(); + private final List commandSet = new ArrayList<>(); + private final List commandHelpSet = new ArrayList<>(); private final Map> localTypeMapper = new HashMap<>(); protected SWCommand(String command) { @@ -102,7 +102,7 @@ public abstract class SWCommand { Bukkit.getLogger().log(Level.WARNING, "The method '" + method.toString() + "' is lacking the varArgs parameters of type '" + String.class.getTypeName() + "' as last Argument"); return; } - commandHelpSet.addLast(new SubCommand(this, method, anno.value())); + commandHelpSet.add(new SubCommand(this, method, anno.value())); }); } for (Method method : getClass().getDeclaredMethods()) { @@ -129,7 +129,7 @@ public abstract class SWCommand { return; } } - commandSet.addLast(new SubCommand(this, method, anno.value())); + commandSet.add(new SubCommand(this, method, anno.value())); }); } }