Annotation Interface Permissive


@Retention(RUNTIME) public @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
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    By default, this is set to "You do not have permission to use this command."
    boolean
    By default, this is set to false.
  • Element Details

    • perm

      String perm
      Returns:
      The command's permission.
    • onlyPlayers

      boolean onlyPlayers
      By default, this is set to false.
      Returns:
      True if the command is only for players, false otherwise.
      Default:
      false
    • noPerms

      String noPerms
      By 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."