Full Data packet handling

This commit is contained in:
Shoghi Cervantes Pueyo 2012-11-23 19:19:58 +01:00
parent 6b12832b02
commit c104e21ef0
6 changed files with 119 additions and 35 deletions

View file

@ -129,6 +129,17 @@ class PocketMinecraftClient{
$this->send(0xc0, array(1, true, $data[0]));
}
switch($data["id"]){
case 0x00:
$this->send(0x84, array(
$this->counter[0],
0x40,
array(
"id" => 0x00,
"payload" => $data["payload"],
),
));
++$this->counter[0];
break;
case 0x10:
$this->send(0x84, array(
$this->counter[0],