public CommandEvent(Command command, int parameter, boolean hasParameter, boolean optional)
   {
      this.command = command;
      this.parameter = parameter;
      this.hasParameter = hasParameter;
      this.optional = optional;
   }