SteamWar/SpigotCore
Archiviert
13
0

Fix CommandPart for optional parameter at end of command
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2021-12-15 15:05:03 +01:00
Ursprung 74866de040
Commit 235bdce294

Datei anzeigen

@ -84,10 +84,6 @@ public class CommandPart {
} }
public void generateArgumentArray(List<Object> current, CommandSender commandSender, String[] args, int startIndex) { public void generateArgumentArray(List<Object> current, CommandSender commandSender, String[] args, int startIndex) {
if (startIndex >= args.length && varArgType == null) {
throw new CommandParseException();
}
if (varArgType != null) { if (varArgType != null) {
Object array = Array.newInstance(varArgType, args.length - startIndex); Object array = Array.newInstance(varArgType, args.length - startIndex);
for (int i = startIndex; i < args.length; i++) { for (int i = startIndex; i < args.length; i++) {