Command constructor

Command(String name, Schema schema, dynamic func)

Creates a new command object and assigns it's parameters.

  • name the command name.
  • schema the schema to validate command arguments.
  • func the function to be executed by this command.