mirror of
https://github.com/aikar/commands.git
synced 2026-05-31 06:11:55 +00:00
Fix inverted syntax logic, thanks minecoder
This commit is contained in:
@@ -103,7 +103,7 @@ public class CommandParameter <CEC extends CommandExecutionContext<CEC, ? extend
|
||||
this.syntax = replacements.replace(syntaxAnno.value());
|
||||
} else if (!requiresInput && canConsumeInput) {
|
||||
this.syntax = "[" + name + "]";
|
||||
} else if (!requiresInput) {
|
||||
} else if (requiresInput) {
|
||||
this.syntax = "<" + name + ">";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user