Annotation Interface CmdExecutor


@Documented @Target(TYPE) @Retention(RUNTIME) public @interface CmdExecutor
Command executor annotation.
Version:
1.0.0
Author:
qianmo
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
    boolean
     
    Note on what a player sees when they lack this permission (#383). This value is also registered with Bukkit, so Paper removes the command from an unpermitted player's command tree and answers with a parse error -- the framework's own refusal message is shown to the console only.
    boolean
     
  • Element Details

    • permission

      String permission
      Note on what a player sees when they lack this permission (#383). This value is also registered with Bukkit, so Paper removes the command from an unpermitted player's command tree and answers with a parse error -- the framework's own refusal message is shown to the console only. Declare the permission on @CmdMapping instead if a player should be told why. See PermissionValidator's class javadoc.
      Default:
      ""
    • description

      String description
      Returns:
      description
      Default:
      ""
    • alias

      String[] alias
      Returns:
      command alias
    • requireOp

      boolean requireOp
      Returns:
      if requires op
      Default:
      false
    • manualRegister

      boolean manualRegister
      Returns:
      if it is manually register
      Default:
      false