Annotation Interface Permission


@Target({TYPE,METHOD}) @Retention(CLASS) public @interface Permission
Annotation specifying the required Bukkit permission to execute a command or subcommand.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The permission string (e.g.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The custom error message to send when the player does not have permission.
  • Element Details

    • value

      String value
      The permission string (e.g. "myplugin.admin").
      Returns:
      the permission required
    • message

      String message
      The custom error message to send when the player does not have permission. If empty, a default message will be used.
      Returns:
      the error message
      Default:
      ""