mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 00:55:14 +00:00
More packets, new structure
This commit is contained in:
@ -27,7 +27,7 @@ the Free Software Foundation, either version 3 of the License, or
|
||||
|
||||
$pstruct = array(
|
||||
0x02 => array(
|
||||
"double", //Ping ID
|
||||
"long", //Ping ID
|
||||
"magic",
|
||||
),
|
||||
|
||||
@ -39,7 +39,7 @@ $pstruct = array(
|
||||
|
||||
0x06 => array(
|
||||
"magic",
|
||||
8, //Server GUID
|
||||
"long", //Server GUID
|
||||
"byte", //Server Security
|
||||
"short", //MTU Size
|
||||
),
|
||||
@ -49,12 +49,12 @@ $pstruct = array(
|
||||
5, //Security Cookie (idk why it's sent here)
|
||||
"short", //Server UDP Port
|
||||
"short", //MTU Size
|
||||
8, //Client GUID
|
||||
"long", //Client GUID
|
||||
),
|
||||
|
||||
0x08 => array(
|
||||
"magic",
|
||||
8, //Server GUID
|
||||
"long", //Server GUID
|
||||
"short", //Client UDP Port
|
||||
"short", //MTU Size
|
||||
"byte", //Security
|
||||
@ -63,19 +63,19 @@ $pstruct = array(
|
||||
0x1a => array(
|
||||
"byte", //Server Version
|
||||
"magic",
|
||||
8, //Server GUID
|
||||
"long", //Server GUID
|
||||
),
|
||||
|
||||
0x1c => array(
|
||||
"double", //Ping ID
|
||||
8, //Server ID
|
||||
"long", //Ping ID
|
||||
"long", //Server GUID
|
||||
"magic",
|
||||
"string", //Data
|
||||
),
|
||||
|
||||
0x1d => array(
|
||||
"double", //Ping ID
|
||||
8, //Server ID
|
||||
"long", //Ping ID
|
||||
"long", //Server GUID
|
||||
"magic",
|
||||
"string", //Data
|
||||
),
|
||||
|
@ -27,11 +27,16 @@ the Free Software Foundation, either version 3 of the License, or
|
||||
|
||||
$dataName = array(
|
||||
0x00 => "KeepAlive",
|
||||
|
||||
0x09 => "ClientHandshake",
|
||||
0x10 => "ServerHandshake",
|
||||
|
||||
0x13 => "ClientConnect",
|
||||
|
||||
0x15 => "ClientDisconnect",
|
||||
|
||||
0x18 => "ServerDisconnect",
|
||||
|
||||
0x82 => "Login",
|
||||
0x83 => "LoginStatus",
|
||||
0x84 => "Ready",
|
||||
@ -41,7 +46,17 @@ $dataName = array(
|
||||
|
||||
0x93 => "MoveEntity_PosRot",
|
||||
0x94 => "MovePlayer",
|
||||
|
||||
0x96 => "RemoveBlock",
|
||||
|
||||
0x9d => "RequestChunk",
|
||||
|
||||
0x9f => "PlayerEquipment",
|
||||
|
||||
0xa1 => "UseItem",
|
||||
|
||||
0xa4 => "SetEntityMotion",
|
||||
0xa5 => "SetHealth",
|
||||
|
||||
0xa7 => "Animate",
|
||||
);
|
Reference in New Issue
Block a user