SteamWar/SpigotCore
Archiviert
13
0

Fix CommandPart.init
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2021-12-09 14:53:48 +01:00
Ursprung 86ef8e2773
Commit 2bc15adfda

Datei anzeigen

@ -44,6 +44,9 @@ public class CommandPart {
private CommandPart next = null;
public CommandPart(TypeMapper<?> typeMapper, GuardChecker guard, Class<?> varArgType, String optional, GuardCheckType guardCheckType) {
if (guardCheckType == GuardCheckType.TAB_COMPLETE) {
throw new IllegalArgumentException("Tab complete is not allowed as a guard check type!");
}
this.typeMapper = typeMapper;
this.guard = guard;
if (optional != null && varArgType != null) {