/command
./command one
and your help command to not have a subcommand like /command
, you set it as default./command one
the one is the subcommand.List<String>
then use the annotation to point it to the sub command you want to handle for.
For completing a sub command annotated with @Default
use "default"
as the target.
Follow the example under:ID
.
If the message ID
is not registered it'll simply display the ID
to the player.null
.
ATENTION **- Because of returning null
primitive data types will not work, for example instead of int
use Integer
, for optional parameters only though!@Completion
annotation, however it can only be used in the parameter. The difference of using Values instead of Completion is that it'll be checked and the only values allowed for that argument. For example if you set a tab completion to only have the Materials STONE
and DIAMOND
even if OAK_WOOD
is a valid Material it'll return null
as it is not part of the tab completion.