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())); }); } }