mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 16:45:13 +00:00
Different protocols, server properties
This commit is contained in:
@ -29,9 +29,9 @@ the Free Software Foundation, either version 3 of the License, or
|
||||
|
||||
|
||||
define("MC_KEEP_ALIVE", 0x00);
|
||||
define("MC_CLIENT_HANDSHAKE", 0x09);
|
||||
define("MC_CLIENT_CONNECT", 0x09);
|
||||
define("MC_SERVER_HANDSHAKE", 0x10);
|
||||
define("MC_CLIENT_CONNECT", 0x13);
|
||||
define("MC_CLIENT_HANDSHAKE", 0x13);
|
||||
define("MC_CLIENT_DISCONNECT", 0x15);
|
||||
define("MC_LOGIN", 0x86);
|
||||
define("MC_LOGIN_STATUS", 0x87);
|
||||
|
@ -29,13 +29,41 @@ the Free Software Foundation, either version 3 of the License, or
|
||||
|
||||
|
||||
define("MC_KEEP_ALIVE", 0x00);
|
||||
define("MC_CLIENT_HANDSHAKE", 0x09);
|
||||
|
||||
define("MC_CLIENT_CONNECT", 0x09);
|
||||
define("MC_SERVER_HANDSHAKE", 0x10);
|
||||
define("MC_CLIENT_CONNECT", 0x13);
|
||||
|
||||
define("MC_CLIENT_HANDSHAKE", 0x13);
|
||||
|
||||
define("MC_CLIENT_DISCONNECT", 0x15);
|
||||
|
||||
define("MC_LOGIN", 0x82);
|
||||
define("MC_LOGIN_STATUS", 0x83);
|
||||
define("MC_READY", 0x84);
|
||||
define("MC_CHAT", 0x85);
|
||||
define("MC_SET_TIME", 0x86);
|
||||
define("MC_START_GAME", 0x87);
|
||||
define("MC_START_GAME", 0x87);
|
||||
|
||||
define("MC_REMOVE_ENTITY", 0x8d);
|
||||
|
||||
define("MC_MOVE_ENTITY_POSROT", 0x93);
|
||||
define("MC_MOVE_PLAYER", 0x94);
|
||||
define("MC_PLACE_BLOCK", 0x95);
|
||||
define("MC_REMOVE_BLOCK", 0x96);
|
||||
|
||||
define("MC_REQUEST_CHUNK", 0x9d);
|
||||
|
||||
define("MC_PLAYER_EQUIPMENT", 0x9f);
|
||||
|
||||
define("MC_USE_ITEM", 0xa1);
|
||||
define("MC_PLAYER_ACTION", 0xa2);
|
||||
define("MC_SET_ENTITY_DATA", 0xa3);
|
||||
define("MC_SET_ENTITY_MOTION", 0xa4);
|
||||
define("MC_SET_HEALTH", 0xa5);
|
||||
define("MC_SET_SPAWN_POSITION", 0xa6);
|
||||
define("MC_ANIMATE", 0xa7);
|
||||
define("MC_RESPAWN", 0xa8);
|
||||
|
||||
define("MC_CLIENT_MESSAGE", 0xb1);
|
||||
define("MC_SIGN_UPDATE", 0xb2);
|
||||
define("MC_ADVENTURE_SETTINGS", 0xb3);
|
@ -28,10 +28,10 @@ the Free Software Foundation, either version 3 of the License, or
|
||||
$dataName = array(
|
||||
MC_KEEP_ALIVE => "KeepAlive",
|
||||
|
||||
MC_CLIENT_HANDSHAKE => "ClientHandshake",
|
||||
MC_CLIENT_CONNECT => "ClientConnect",
|
||||
MC_SERVER_HANDSHAKE => "ServerHandshake",
|
||||
|
||||
MC_CLIENT_CONNECT => "ClientConnect",
|
||||
MC_CLIENT_HANDSHAKE => "ClientHandshake",
|
||||
|
||||
MC_CLIENT_DISCONNECT => "ClientDisconnect",
|
||||
|
||||
@ -44,21 +44,27 @@ $dataName = array(
|
||||
MC_SET_TIME => "SetTime",
|
||||
MC_START_GAME => "StartGame",
|
||||
|
||||
0x93 => "MoveEntity_PosRot",
|
||||
0x94 => "MovePlayer",
|
||||
MC_REMOVE_ENTITY => "RemoveEntity",
|
||||
|
||||
0x96 => "RemoveBlock",
|
||||
MC_MOVE_ENTITY_POSROT => "MoveEntity_PosRot",
|
||||
MC_MOVE_PLAYER => "MovePlayer",
|
||||
MC_PLACE_BLOCK => "PlaceBlock",
|
||||
MC_REMOVE_BLOCK => "RemoveBlock",
|
||||
|
||||
0x9d => "RequestChunk",
|
||||
MC_REQUEST_CHUNK => "RequestChunk",
|
||||
|
||||
0x9f => "PlayerEquipment",
|
||||
MC_PLAYER_EQUIPMENT => "PlayerEquipment",
|
||||
|
||||
0xa1 => "UseItem",
|
||||
MC_USE_ITEM => "UseItem",
|
||||
MC_PLAYER_ACTION => "PlayerAction",
|
||||
MC_SET_ENTITY_DATA => "SetEntityData",
|
||||
MC_SET_ENTITY_MOTION => "SetEntityMotion",
|
||||
MC_SET_HEALTH => "SetHealth",
|
||||
MC_SET_SPAWN_POSITION => "SetSpawnPosition",
|
||||
MC_ANIMATE => "Animate",
|
||||
MC_RESPAWN => "Respawn",
|
||||
|
||||
0xa4 => "SetEntityMotion",
|
||||
0xa5 => "SetHealth",
|
||||
|
||||
0xa7 => "Animate",
|
||||
|
||||
0xb1 => "ClientMessage"
|
||||
MC_CLIENT_MESSAGE => "ClientMessage",
|
||||
MC_SIGN_UPDATE => "SignUpdate",
|
||||
MC_ADVENTURE_SETTINGS => "AdventureSettings",
|
||||
);
|
Reference in New Issue
Block a user