Annotation Interface Permissive
This annotation holds the permission information for each command. This annotation defines the command's permission,
whether it is only for players, and the message to send if the sender does not have permission to use the command.
Classes MUST have this annotation present to be registered with the handler.
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionBy default, this is set to "You do not have permission to use this command."booleanBy default, this is set to false.
-
Element Details
-
perm
String perm- Returns:
- The command's permission.
-
-
-
onlyPlayers
boolean onlyPlayersBy default, this is set to false.- Returns:
- True if the command is only for players, false otherwise.
- Default:
- false
-
noPerms
String noPermsBy default, this is set to "You do not have permission to use this command."- Returns:
- The message to send if the sender does not have permission to use the command.
- Default:
- "You do not have permission to use this command."
-