Interface Command


public interface Command
Represents a command that opens an Inventory.
  • Method Details

    • getCommand

      String getCommand()
      Gets the primary command name.
      Returns:
      The primary command name.
    • getAliases

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

      String getPermission()
      Gets the permission required to execute the command.
      Returns:
      The permission node required to execute the command.
    • getInventory

      String getInventory()
      Gets the name of the inventory to open when the command is executed.
      Returns:
      The name of the inventory.
    • getPlugin

      org.bukkit.plugin.Plugin getPlugin()
      Gets the plugin associated with the command.
      Returns:
      The plugin associated with the command.
    • getArguments

      List<CommandArgument> getArguments()
      Gets the list of command arguments.
      Returns:
      The list of command arguments.
    • getCommandArguments

      List<String> getCommandArguments()
      Gets the list of command arguments as strings.
      Returns:
      The list of command arguments as strings.
    • hasArgument

      boolean hasArgument()
      Checks if the command has any arguments.
      Returns:
      true if the command has arguments, otherwise false.
    • getFile

      File getFile()
      Gets the file associated with the command.
      Returns:
      The file associated with the command.
    • getPath

      String getPath()
      Gets the path of the command in the configuration file.
      Returns:
      The path of the command in the configuration file.