Class CommandParameters

java.lang.Object
com.reign.kat.lib.command.CommandParameters

public class CommandParameters extends Object
Converts a command's arguments into objects, decided by Command.converters
  • Field Details

  • Constructor Details

    • CommandParameters

      public CommandParameters(Context ctx, String commandline)
  • Method Details

    • parse

      public void parse(Command command) throws MissingArgumentCommandException
      Takes an array of Strings and attempts to run a command's list of Converters on them.
      Parameters:
      command - Command in which to try to convert for.
      Throws:
      MissingArgumentCommandException - The input strArgs has missing arguments for the specified command.
    • get

      public <T> T get(String key)