From 0158f24e3e2422405620351e3090da0fd80d6afc Mon Sep 17 00:00:00 2001 From: yoyosource Date: Wed, 5 May 2021 19:17:39 +0200 Subject: [PATCH] Fix SWCommandUtils --- SpigotCore_Main/src/de/steamwar/command/SWCommandUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpigotCore_Main/src/de/steamwar/command/SWCommandUtils.java b/SpigotCore_Main/src/de/steamwar/command/SWCommandUtils.java index 05f0e94..e6e0ee4 100644 --- a/SpigotCore_Main/src/de/steamwar/command/SWCommandUtils.java +++ b/SpigotCore_Main/src/de/steamwar/command/SWCommandUtils.java @@ -120,7 +120,7 @@ public class SWCommandUtils { } if (varArgType != null) { - Object varArgument = arguments[args.length - 1]; + Object varArgument = arguments[arguments.length - 1]; for (int i = 0; i < length; i++) { Object value = parameters[parameters.length - 1].map(commandSender, Arrays.copyOf(args, index), args[index]);