mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Day 2
This commit is contained in:
@ -30,12 +30,19 @@ use pocketmine\network\mcpe\NetworkSession;
|
||||
class ServerSettingsResponsePacket extends DataPacket{
|
||||
const NETWORK_ID = ProtocolInfo::SERVER_SETTINGS_RESPONSE_PACKET;
|
||||
|
||||
/** @var int */
|
||||
public $formId;
|
||||
/** @var string */
|
||||
public $formData; //json
|
||||
|
||||
public function decodePayload(){
|
||||
//TODO
|
||||
$this->formId = $this->getUnsignedVarInt();
|
||||
$this->formData = $this->getString();
|
||||
}
|
||||
|
||||
public function encodePayload(){
|
||||
//TODO
|
||||
$this->putUnsignedVarInt($this->formId);
|
||||
$this->putString($this->formData);
|
||||
}
|
||||
|
||||
public function handle(NetworkSession $session) : bool{
|
||||
|
Reference in New Issue
Block a user