Class ICommand<T>

java.lang.Object
me.lorenzo0111.pluginslib.command.ICommand<T>
Type Parameters:
T - Command

public abstract class ICommand<T> extends Object
  • Field Details

  • Constructor Details

    • ICommand

      public ICommand(T plugin, String command, @Nullable @Nullable Customization customization)
      Parameters:
      plugin - Owner of the command
      command - Name of the command ( /name )
      customization - Optional Command customization
  • Method Details

    • register

      public abstract void register(String command)
    • getPlugin

      public T getPlugin()
      Returns:
      Owner of the command
    • addSubcommand

      public void addSubcommand(SubCommand subCommand)
      Parameters:
      subCommand - SubCommand to add
    • findSubcommand

      public Optional<SubCommand> findSubcommand(Class<? extends Annotation> annotation)
      Find a subcommand annotated with something
      Parameters:
      annotation - Annotation to find
      Returns:
      Optional subcommand
    • getPermission

      public String getPermission()
    • getCustomization

      public Customization getCustomization()
    • getSubcommands

      public List<SubCommand> getSubcommands()
    • getMessage

      public String getMessage()
    • getCommand

      public String getCommand()