0x00 S00PacketDisconnect
Kicks the client during the login phase with a JSON chat component reason message (e.g. 'You are banned', 'Server is full').
Fields
| Field | Type | Description |
|---|---|---|
| reason | IChatComponent (JSON) | The disconnect reason message displayed to the player |
Wire Encoding
| Field | Type | Notes |
|---|---|---|
| Reason | Chat Component (JSON) | Serialized as JSON chat component string |
MCP References
MCP
NetHandlerLoginClient.handleDisconnect()Handler Interface
HND
INetHandlerLoginClientimplementation Implementation Cases
AutoReconnect
(Tenacity 5.1, Gugustus)
Detect kick/disconnect, cancel or auto-rejoin.
if (event.getPacket() instanceof S00PacketDisconnect) {
event.setCancelled(true);
AutoReconnect.reconnect();
}AntiKick
(Tenacity 5.1, Gugustus)
Detect kick/disconnect, cancel or auto-rejoin.
if (event.getPacket() instanceof S00PacketDisconnect) {
event.setCancelled(true);
AutoReconnect.reconnect();
}