@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface CommandPriority
If a method has higher priority (i.e. lower value), it will
be registered and tested out before the lower-priority one. This may
be necessary when certain methods contain overlapping parameters that may both
work with the same input, and it is infeasible to define a PrioritySpec
for each of them.
Note that this annotation is only considered when two methods
both define a CommandPriority. It is meaningless to compare a method
with a priority with a method that has no priority.
If you would like to make a command universally of low priority,
use CommandPriority.Low
PrioritySpec,
CommandPriority.Low| Modifier and Type | Required Element and Description |
|---|---|
int |
value
The priority value
|