Annotation Interface Arg
Annotation to define a command argument on a method parameter.
Use this locally with Command to automatically register arguments.
- Since:
- 1.0.6
- Version:
- 1.0.6
- Author:
- HytaleLoader
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe description of the argument.booleanWhether the argument is optional.
-
Element Details
-
name
-
description
String descriptionThe description of the argument.- Returns:
- the description
- Default:
"No description"
-
optional
boolean optionalWhether the argument is optional. If true, the argument will be registered as optional. Note: Optional arguments must be at the end of the argument list.- Returns:
- true if optional, false otherwise
- Default:
false
-