Class CommandProcessor

java.lang.Object
net.ME1312.Galaxi.Command.CommandProcessor

public abstract class CommandProcessor extends Object
Galaxi Command Processor Class
  • Constructor Details

    • CommandProcessor

      public CommandProcessor()
  • Method Details

    • complete

      public abstract List<String> complete(CommandSender sender, String command)
      Complete a command
      Parameters:
      command - Command
      Returns:
      Auto Completions
    • runCommand

      public abstract CommandProcessor.Status runCommand(CommandSender sender, String command)
      Run a command
      Parameters:
      sender - Command Sender
      command - Command
      Returns:
      Whether the command was run
    • escapeCommand

      public String escapeCommand(String label, String... args)
      Escapes a command
      Parameters:
      label - Command Label
      args - Command Arguments
      Returns:
      Escaped Command
    • escapeArguments

      public String escapeArguments(String... args)
      Escapes some arguments
      Parameters:
      args - Command Arguments
      Returns:
      Escaped Arguments
    • escapeCommand

      public abstract String escapeCommand(String label, String[] args, boolean literal, boolean whitespaced)
      Escapes a command
      Parameters:
      label - Command Label
      args - Command Arguments
      literal - Literal String Escape Mode (using Single Quotes)
      whitespaced - Whitespaced String Escape Mode (using Double Quotes)
      Returns:
      Escaped Command
    • escapeArguments

      public abstract String escapeArguments(String[] args, boolean literal, boolean whitespaced)
      Escapes some arguments
      Parameters:
      args - Command Arguments
      literal - Literal String Escape Mode (using Single Quotes)
      whitespaced - Whitespaced String Escape Mode (using Double Quotes)
      Returns:
      Escaped Arguments