SteamWar/SpigotCore
Archiviert
13
0

Fix SubCommand
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2021-12-09 21:51:06 +01:00
Ursprung 5f7f7673f0
Commit 563801b0a1

Datei anzeigen

@ -89,8 +89,9 @@ class SubCommand {
} }
} }
commandPart.guardCheck(commandSender, args, 0); commandPart.guardCheck(commandSender, args, 0);
objects.add(0, commandSenderFunction.apply(commandSender));
method.setAccessible(true); method.setAccessible(true);
method.invoke(swCommand, objects); method.invoke(swCommand, objects.toArray());
} }
} catch (CommandNoHelpException e) { } catch (CommandNoHelpException e) {
throw e; throw e;