-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Base command support
Add a @Base annotation for the base command. For example,
@Base(description="Build a house", minArgs=0)
public void base(CallInfo call)
{
// build house here
}
@Sub(description="Fix a House", minArgs=1, usage="<player>")
public void fix(CallInfo call)
{
// fix house here
}Running /house help would produce a help message the following (With coloring and stuff, of course):
/house "Build a house"
/house fix <player> "Fixed a player houses
- Running
/housewould run thebasemethod - Running
/house fixwould run thefixmethod - If someone ran an unknown command, say
/house steal john, an unknown command subcommand message would come up and the same message from/house helpwould appear
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels