diff --git a/SpigotCore_Main/src/de/steamwar/command/SubCommand.java b/SpigotCore_Main/src/de/steamwar/command/SubCommand.java index 3cbc445..7eade15 100644 --- a/SpigotCore_Main/src/de/steamwar/command/SubCommand.java +++ b/SpigotCore_Main/src/de/steamwar/command/SubCommand.java @@ -89,8 +89,9 @@ class SubCommand { } } commandPart.guardCheck(commandSender, args, 0); + objects.add(0, commandSenderFunction.apply(commandSender)); method.setAccessible(true); - method.invoke(swCommand, objects); + method.invoke(swCommand, objects.toArray()); } } catch (CommandNoHelpException e) { throw e;