Skip to content

Disconnect ​

Packet IDDirectionMojang NameMCP Name
0xFFBothDisconnectPacketPacket255KickDisconnect

This packet is used by the server to disconnect the client with a reason, after which it will close the connection.

WARNING

After a disconnect packet has been issued, no further data may be sent, otherwise the client will freeze up due to a NullPointerException.

Clientbound ​

FieldTypeDescription
ReasonString16The reason for disconnecting the client

Serverbound ​

FieldTypeDescription
ReasonString16The reason the client disconnected

Example Packet ​

FieldValue
ReasonThe server is full!