From 2f331e169aa627c6c119b704163f1fd5141ae1af Mon Sep 17 00:00:00 2001 From: yoyosource Date: Thu, 9 Dec 2021 22:02:15 +0100 Subject: [PATCH] Fix SubCommand --- SpigotCore_Main/src/de/steamwar/command/SubCommand.java | 1 + 1 file changed, 1 insertion(+) diff --git a/SpigotCore_Main/src/de/steamwar/command/SubCommand.java b/SpigotCore_Main/src/de/steamwar/command/SubCommand.java index 7eade15..4b66771 100644 --- a/SpigotCore_Main/src/de/steamwar/command/SubCommand.java +++ b/SpigotCore_Main/src/de/steamwar/command/SubCommand.java @@ -89,6 +89,7 @@ class SubCommand { } } commandPart.guardCheck(commandSender, args, 0); + for (int i = 0; i < subCommand.length; i++) objects.remove(0); objects.add(0, commandSenderFunction.apply(commandSender)); method.setAccessible(true); method.invoke(swCommand, objects.toArray());