Annotation Type AnnotatedCommandExecutor.Command


  • @Retention(RUNTIME)
    @Target(METHOD)
    public static @interface AnnotatedCommandExecutor.Command
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      Grant defaultGrant
      Default grant behavior of permission property.
      java.lang.String description
      Description of this command, used in command help.
      java.lang.String permission
      Permission to check for when this command is execute.
    • Element Detail

      • description

        java.lang.String description
        Description of this command, used in command help.
        Returns:
        description.
        Default:
        ""
      • permission

        java.lang.String permission
        Permission to check for when this command is execute.
        Returns:
        permission node, blank for no permission checking.
        Default:
        ""
      • defaultGrant

        Grant defaultGrant
        Default grant behavior of permission property. When set to Grant.DENY, permission is assumed denied when no permission is set on the user. When set to Grant.ALLOW, command execution is allowed unless the user explicitly has a defined Grant.DENY permission grant matching the command's required node.
        Returns:
        default grant behavior.
        Default:
        io.manebot.security.Grant.DENY