/**
  * Creates a RCON command execution request for the given request ID and
  * command
  *
  * @param int $requestId The request ID of the RCON connection
  * @param string $command The command to execute on the server
  */
 public function __construct($requestId, $command)
 {
     parent::__construct($requestId, RCONPacket::SERVERDATA_EXECCOMMAND, $command);
 }
 /**
  * Creates a RCON command response for the given request ID and command
  * output
  *
  * @param int $requestId The request ID of the RCON connection
  * @param string $commandResponse The output of the command executed on the
  *        server
  */
 public function __construct($requestId, $commandResponse)
 {
     parent::__construct($requestId, RCONPacket::SERVERDATA_RESPONSE_VALUE, $commandResponse);
 }
Exemplo n.º 3
0
 public function __construct($requestId)
 {
     parent::__construct($requestId, RCONPacket::SERVERDATA_AUTH_RESPONSE);
 }
 public function __construct($requestId, $password)
 {
     parent::__construct($requestId, RCONPacket::SERVERDATA_AUTH, $password);
 }