Annotation Interface RegisterCommand


@Retention(RUNTIME) @Target(TYPE) @Documented public @interface RegisterCommand
For auto registration of commands with plugin.yml configs

Annotation targeting command Types. Set the commandName() argument to the command name IE: if the command is /help -> @CommandLoader(commandName = "help").

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    @NotNull String
    This is a required field.
  • Element Details

    • commandName

      @NotNull @NotNull String commandName
      This is a required field.
      Returns:
      a string representing the commands name.