From 7e96e4c2d5d30ea7688fbab672e76ff95a9aa6d4 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Fri, 10 Dec 2021 11:11:30 +0100 Subject: [PATCH] Fix CommandPart.generateArgumentArray for vararg --- SpigotCore_Main/src/de/steamwar/command/CommandPart.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpigotCore_Main/src/de/steamwar/command/CommandPart.java b/SpigotCore_Main/src/de/steamwar/command/CommandPart.java index 666d516..e150052 100644 --- a/SpigotCore_Main/src/de/steamwar/command/CommandPart.java +++ b/SpigotCore_Main/src/de/steamwar/command/CommandPart.java @@ -84,7 +84,7 @@ public class CommandPart { } public void generateArgumentArray(List current, CommandSender commandSender, String[] args, int startIndex) { - if (startIndex >= args.length) { + if (startIndex >= args.length && varArgType == null) { throw new CommandParseException(); }