SteamWar/SpigotCore
Archiviert
13
0

Hotfix SubCommand
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2021-12-08 17:22:02 +01:00
Ursprung b3b3657463
Commit 0e993d8f3e

Datei anzeigen

@ -86,7 +86,7 @@ class SubCommand {
name = mapper.value(); name = mapper.value();
} else { } else {
SWCommand.StaticValue staticValue = parameter.getAnnotation(SWCommand.StaticValue.class); SWCommand.StaticValue staticValue = parameter.getAnnotation(SWCommand.StaticValue.class);
if (parameter.getType() == String.class) { if (staticValue != null && parameter.getType() == String.class) {
arguments[i - 1] = SWCommandUtils.createMapper(staticValue.value()); arguments[i - 1] = SWCommandUtils.createMapper(staticValue.value());
guards[i - 1] = getGuardChecker(parameter, localGuardChecker); guards[i - 1] = getGuardChecker(parameter, localGuardChecker);
continue; continue;