Interface StandaloneCommand


public interface StandaloneCommand
Interface representing a generated standalone command executor.
  • Method Details

    • getName

      String getName()
      Gets the primary name of the command.
      Returns:
      the command name
    • getAliases

      List<String> getAliases()
      Gets the aliases of the command.
      Returns:
      the list of command aliases
    • getDescription

      String getDescription()
      Gets the description of the command.
      Returns:
      the command description
    • execute

      boolean execute(Object sender, String[] args)
      Executes the command.
      Parameters:
      sender - the sender executing the command
      args - the arguments passed to the command
      Returns:
      true if execution succeeded
    • tabComplete

      List<String> tabComplete(Object sender, String[] args)
      Tab-completes the command.
      Parameters:
      sender - the sender completing the command
      args - the arguments entered so far
      Returns:
      a list of suggestions