Skip to main content

Connection Packets

Packets in the com.hypixel.hytale.protocol.packets.connection package.

Connect (0)

Bound: Serverbound | State: Handshake | Compressed: No

The very first packet sent by the client to initiate the session.

FieldTypeNotes
nullBitsByteBitmask for optional fields.
protocolHashString (64)Fixed-length hash of the protocol version.
clientTypeByte0 = Game, 1 = Editor.
uuidUUIDThe player's unique ID.
languageStringOptional (Mask 0x1). Language code (e.g., "en-US").
identityTokenStringOptional (Mask 0x2). JWT for authentication (Max 8192 chars).
usernameStringOptional (Mask 0x4). Player username (Max 16 chars).
referralDataByte[]Optional (Mask 0x8). Binary referral blob.
referralSourceHostAddressOptional (Mask 0x10). Where the user clicked "Connect" from.

Disconnect (1)

Bound: Clientbound | State: Any

Sent by the server to close the connection with a reason.

FieldTypeNotes
reasonStringThe kick message displayed to the user.

Ping (2)

Bound: Bidirectional | State: Any

Keep-alive packet.

FieldTypeNotes
timeInstantDataCurrent system time.

Pong (3)

Bound: Bidirectional | State: Any

Response to a Ping packet.

FieldTypeNotes
timeInstantDataThe time received in the Ping packet.
metricsShortOptional. Queue size/metrics (Serverbound only).