The login packet is encoded with json encoded base64.
As far as i can tell, these fields are the same as the 1.0.5 Login Packet.
| Sent from client | true |
| Sent from server | false |
NOTE: The names of each field is the exact field name sent from the client.
Not all these fields may be correct.
Click a field name for more info and examples.
| Name | Type | Description |
|---|---|---|
| exp | int | TODO |
| identityPublicKey | string | TODO |
| nbf | int | TODO |
| Name | Type | Description |
|---|---|---|
| displayName | string | The name of the player |
| identity | string | The UUID of the player? |
| Name | Type | Description |
|---|---|---|
| ADRole | int | TODO |
| ClientRandomId | float | TODO |
| CurrentInputMode | int | TODO |
| DefaultInpuutMode | int | TODO |
| DeviceModel | string | The model of the device |
| DeviceOS | int | TODO |
| GameVersion | string | The network game version |
| GuiScale | int | TODO |
| ServerAddress | string | The server address and port |
| SkinId | string | The name of the players skin |
| TenantId | string | TODO |
| UIProfile | int | TODO |
Here is an example of what data is sent in this packet. Generated using safe_var_dump() and json_encode() in PocketMine-MP.
{
"exp": 1522581510,
"extraData":
{
"displayName": "Steve",
"identity": "848dd007-023b-352c-a2a6-d02ac083842f"
},
"identityPublicKey": "MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEiq2A3rwdATUYeYbTCT6qkhAaec9VrjNOKBQvrZqrs+AZf3ZIyl0hvwstXCv2wXoB+n83zvk\/oixzv0EMDijqgDNcp2XwcZQhFipMuuEooBFEAXUdeEZog+Y5MW61fdg7",
"nbf": 1491045509
}
{
"ADRole": 2,
"ClientRandomId": -1.5525916071778e+18,
"CurrentInputMode": 2,
"DefaultInputMode": 2,
"DeviceModel": "AMAZON KFGIWI",
"DeviceOS": 1,
"GameVersion": "1.0.6.0",
"GuiScale": 0,
"ServerAddress": "192.168.1.4:19132",
"SkinData": "(long base64 string)",
"SkinId": "Standard_Alex",
"TenantId": "",
"UIProfile", 1
}
Packet Info from PocketMine-MP.