SteamWar/SpigotCore
Archiviert
13
0

Fix SubCommand
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2021-12-09 22:02:15 +01:00
Ursprung 563801b0a1
Commit 2f331e169a

Datei anzeigen

@ -89,6 +89,7 @@ class SubCommand {
} }
} }
commandPart.guardCheck(commandSender, args, 0); commandPart.guardCheck(commandSender, args, 0);
for (int i = 0; i < subCommand.length; i++) objects.remove(0);
objects.add(0, commandSenderFunction.apply(commandSender)); objects.add(0, commandSenderFunction.apply(commandSender));
method.setAccessible(true); method.setAccessible(true);
method.invoke(swCommand, objects.toArray()); method.invoke(swCommand, objects.toArray());