Annotation Interface Command


@Retention(RUNTIME) @Target(TYPE) public @interface Command
Used to give information about a command class. A BaseCommand,CoreCommand and SubCommand requires Command annotation to be used.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Description of this command.
    Name of this command.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Permission required from player to use this command.
    boolean
    Is this command player only?
    If true, the console can't use this command.
  • Element Details

    • name

      String name
      Name of this command.
      Returns:
      Name of this command.
    • description

      String description
      Description of this command.
      Returns:
      Description of this command.
    • permission

      String permission
      Permission required from player to use this command. If not specified, every player can use this command without any permission.
      Returns:
      Permission of this command.
      Default:
      ""
    • playerOnly

      boolean playerOnly
      Is this command player only?
      If true, the console can't use this command. If false, console can use this command too.
      Returns:
      Is this command player only?
      Default:
      false