Annotation Interface Completer


@Documented @Target(METHOD) @Retention(RUNTIME) public @interface Completer
A utility class in framework to create argument completions for commands.
Since:
1.0.0
Author:
Despical
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The name of the command.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    An alternative name list of command.
    The permission that sender must have to receive tab complete.
  • Element Details

    • name

      String name
      The name of the command. If command would be a sub command then sub command's name must be separated by dot. For example like the "command.subcommand"
      Returns:
      name of the command or subcommand
    • permission

      String permission
      The permission that sender must have to receive tab complete.
      Returns:
      name of the permission
      Default:
      ""
    • aliases

      String[] aliases
      An alternative name list of command. Check name() to understand how command names work.
      Returns:
      aliases list of the command
      Default:
      {}