Annotation Interface Argument
Marks a parameter of a
CommandMethod method as the argument with this name in the command, e.g.
<player>. Parameters of type String, int, long, short, float,
double, boolean, UUID and ServerType are converted
automatically, other types with an ObjectParser.-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanonly possible for the last argument in a command.@NonNull StringName of theSuggestionthat completes this argument in the console.
-
Element Details
-
value
Name of the argument in the command, without the angle brackets. -
suggestions
Name of theSuggestionthat completes this argument in the console.- Default:
""
-
greedy
boolean greedyonly possible for the last argument in a command. greedy arguments will take all strings after that argument as its argument.
- Default:
false
-