mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Some protocol changes for 1.1.0.0
This commit is contained in:
@ -31,21 +31,21 @@ class CommandStepPacket extends DataPacket{
|
||||
public $command;
|
||||
public $overload;
|
||||
public $uvarint1;
|
||||
public $uvarint2;
|
||||
public $bool;
|
||||
public $uvarint64;
|
||||
public $args;
|
||||
public $string4;
|
||||
public $currentStep;
|
||||
public $done;
|
||||
public $clientId;
|
||||
public $inputJson;
|
||||
public $outputJson;
|
||||
|
||||
public function decode(){
|
||||
$this->command = $this->getString();
|
||||
$this->overload = $this->getString();
|
||||
$this->uvarint1 = $this->getUnsignedVarInt();
|
||||
$this->uvarint2 = $this->getUnsignedVarInt();
|
||||
$this->bool = (bool) $this->getByte();
|
||||
$this->uvarint64 = $this->getUnsignedVarLong();
|
||||
$this->args = json_decode($this->getString());
|
||||
$this->string4 = $this->getString();
|
||||
$this->currentStep = $this->getUnsignedVarInt();
|
||||
$this->done = (bool) $this->getByte();
|
||||
$this->clientId = $this->getUnsignedVarLong();
|
||||
$this->inputJson = json_decode($this->getString());
|
||||
$this->outputJson = $this->getString();
|
||||
|
||||
$this->get(true); //TODO: read command origin data
|
||||
}
|
||||
|
Reference in New Issue
Block a user