From 563801b0a1bcfc66326f6ea67515f05e25977707 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Thu, 9 Dec 2021 21:51:06 +0100 Subject: [PATCH] Fix SubCommand --- SpigotCore_Main/src/de/steamwar/command/SubCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;