-
Notifications
You must be signed in to change notification settings - Fork 31
Command File Tags
This article is a list of all tags that can be used in command bodies in the command file.
help <helpmessage>
- Specifies the help message for a command
helpmsg <messagename>
- Specifies a Messages entry which will be used to fetch the help message for a command
permission <permission>
- Specifies the permission needed to run a command
hook <hookname>
- Specifies the hook name for a given command, which will be matched against a method annotated with @CommandHook("hookname")
user <player|console|everyone>
- Specifies which senders can run the command
context <contextprovider> ...
- Specifies context providers which will be used to pass additional information to the method hook
assert <contextprovider> ...
- Specifies context providers which will only be used to perform checks before running the method hook
nohelp
- Specifies that a command should not have the auto-generated help
subcommand
notab
- Specifies that a command should not be tab-completable
hidesub
- Hides subcommands of a given command in the help menu to reduce clutter
postarg
- Specifies that a subcommand is placed after the arguments of its parent command, and receives those arguments in its method hook