Annotation Interface Permission


@Target(METHOD) @Retention(RUNTIME) public @interface Permission
Annotation for commands that require a permission.
See Also:
TippieCommand
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The permission required to execute the command.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The message to display if the player does not have the permission.
  • Element Details

    • permission

      String permission
      The permission required to execute the command.
      Returns:
      the permission required to execute the command.
    • noPermissionMessage

      String noPermissionMessage
      The message to display if the player does not have the permission.
      Returns:
      the message to display if the player does not have the permission.
      Default:
      "\u00a7cYou do not have the required permission to execute this command."