// /example - Output will be "Value: default value of the argument" // /example test - Output will be "Value: test" @Command
(name
="example") publicvoid exampleCommand
(CommandArguments arguments, @
Default("default value of the argument") @Param
("arg")String value
){ arguments.
sendMessage("Value: "+ value
); }
// /example firstArg 123 - Output will be "Second argument as int is 123" // /example firstArg - Output will be "Second argument as int is 100" (100 is the value from default annotation) @Command
(name
="intExample") publicvoid exampleCommand
(CommandArguments arguments, @
Default("100") @Param
("secondAsInt")int secondArg
){ arguments.
sendMessage("Second argument as int is "+ secondArg
); } }