Disconnect
| Packet ID | Direction | Mojang Name | MCP Name |
|---|---|---|---|
0xFF | Both | DisconnectPacket | Packet255KickDisconnect |
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
| Field | Type | Description |
|---|---|---|
| Reason | String16 | The reason for disconnecting the client |
Serverbound
| Field | Type | Description |
|---|---|---|
| Reason | String16 | The reason the client disconnected |
Example Packet
| Field | Value |
|---|---|
| Reason | The server is full! |