0x00 S00PacketDisconnect

Kicks the client during the login phase with a JSON chat component reason message (e.g. 'You are banned', 'Server is full').

Clientbound (Server → Client) · LOGIN · net/minecraft/network/login/server/S00PacketDisconnect.java

Published 2026-06-18 · Updated 2026-10-14

logindisconnectkick
Comprehensive 7/8

Fields

FieldTypeDescription
reasonIChatComponent (JSON)The disconnect reason message displayed to the player

Wire Encoding

FieldTypeNotes
ReasonChat Component (JSON)Serialized as JSON chat component string

MCP References

MCPNetHandlerLoginClient.handleDisconnect()

Handler Interface

HNDINetHandlerLoginClient

Vanilla Source

S00PacketDisconnect.java50 lines · MCP 1.8.9Original ↗
1
package net.minecraft.network.login.server;
2
3
import java.io.IOException;
4
import net.minecraft.network.Packet;
5
import net.minecraft.network.PacketBuffer;
6
import net.minecraft.network.login.INetHandlerLoginClient;
7
import net.minecraft.util.IChatComponent;
8
9
public class S00PacketDisconnect implements Packet<INetHandlerLoginClient>
10
{
11
    private IChatComponent reason;
12
13
    public S00PacketDisconnect()
14
    {
15
    }
16
17
    public S00PacketDisconnect(IChatComponent reasonIn)
18
    {
19
        this.reason = reasonIn;
20
    }
21
22
    /**
23
     * Reads the raw packet data from the data stream.
24
     */
25
    public void readPacketData(PacketBuffer buf) throws IOException
26
    {
27
        this.reason = buf.readChatComponent();
28
    }
29
30
    /**
31
     * Writes the raw packet data to the data stream.
32
     */
33
    public void writePacketData(PacketBuffer buf) throws IOException
34
    {
35
        buf.writeChatComponent(this.reason);
36
    }
37
38
    /**
39
     * Passes this Packet on to the NetHandler for processing.
40
     */
41
    public void processPacket(INetHandlerLoginClient handler)
42
    {
43
        handler.handleDisconnect(this);
44
    }
45
46
    public IChatComponent func_149603_c()
47
    {
48
        return this.reason;
49
    }
50
}

Deobfuscated MCP 1.8.9 source of S00PacketDisconnect, fetched directly from Marcelektro/MavenMCP-1.8.9 (net/minecraft/network/login/server/S00PacketDisconnect.java) at build time and verified present.

Deep Dive

Role in the protocol

S00PacketDisconnect is the LOGIN-state kick: the server sends it with a JSON IChatComponent reason whenever the handshake fails before the player exists. NetHandlerHandshakeTCP uses it for protocol version mismatches, NetHandlerLoginServer for banned, full, whitelisted or unverified players, and any plugin that rejects a join during login. The client's NetHandlerLoginClient.handleDisconnect closes the channel with the reason, which surfaces as the GuiDisconnected screen. Its PLAY-state sibling is S40PacketDisconnect, used for kicks after the world loads.

Vanilla handling

NetHandlerLoginClient.handleDisconnect calls field_147393_d.closeChannel(packetIn.func_149603_c()), which tears down the NetworkManager and shows the disconnect screen with the JSON reason rendered. The server side has no symmetric handler because this packet is server-to-client only; the server closes the connection after sending it. Because the client handler runs on the login thread path, a module hooking PacketReceiveEvent sees the packet before the channel close, which is the window the 10 clients use to clean up state.

Why clients touch it

Three families in the 10 clients use this packet as a state-hygiene signal. Rise 5.99 Speed (line 1917) and Timer (line 81) reset their balance accumulators on S00PacketDisconnect so the MMC timer-balance state starts clean on the next join attempt. Spicy Disabler clears its C0FPacketConfirmTransaction buffer on the packet so stale transactions are never flushed into a fresh connection. LiquidSense Dev's PingSpoof imports S00PacketDisconnect but never references it again: its buffered keepalive/transaction map is exactly the structure that needs flushing on kick, so the disconnect flush was planned and left unwired. No true AutoReconnect module hooks it in this corpus: the auto-rejoin features of these clients key off the play-state disconnect path or onDisconnect, not the login kick, which is why the packet sees no reconnect logic.

Exploit surface

Cancelling the packet would suppress the kick screen, but the channel close is driven by the server's own side, so the client gains nothing. The useful behavior is the reverse: treat the packet as a reliable 'connection died' notification. Clearing buffered transactions on disconnect matters because a stale C0FPacketConfirmTransaction replayed after relog desyncs the new window/uid sequence and can trip transaction-based anti-cheats. Timer's balance reset is defensive in the same spirit: a leftover negative balance would gate timerSpeed to 1 on the next join for no reason.

Server-Side Handling

Sent by NetHandlerHandshakeTCP for protocol mismatch (lines 35/39), by NetHandlerLoginServer for banned/full/whitelist and auth failures (line 79), and by plugins during login. The server closes the connection after sending; the client's handleDisconnect closes the channel with the reason, showing GuiDisconnected.

Protocol Analysis

LOGIN state, id 0x00, one IChatComponent serialized as a JSON string with a VarInt length prefix. Clientbound only. Distinguished from the PLAY-state S40PacketDisconnect by connection state; the two share a name but are different classes. Because it arrives before the world exists, module event buses that only fire post-join never see it, which is why only receive-side state cleanup hooks it.

Anti-Cheat Landscape

Not an anti-cheat surface: the packet is server-initiated and carries no client-controlled data. Its relevance to anti-cheats is indirect, in what clients do in response: flushing buffered C0F transactions on disconnect keeps the exploit state machine clean, and a client that fails to do so can carry stale transaction state into the next session, which transaction-tracking anti-cheats (Verus-style) would flag.

implementation Implementation Cases

The LOGIN-state kick carrying the JSON reason. No module cancels it, because the server closes the channel anyway; Rise 5.99 Speed/Timer and Spicy's Disabler instead use it as a reliable connection-death signal to reset timer balance and flush buffered transactions before the next join; LiquidSense Dev's PingSpoof carries only a dead import of it.

Speed / Timer (balance reset) (Rise 5.99)

Reset the timer-balance accumulator when the server kills a login, so the MMC timer exploit restarts from zero on the next join attempt.

A PacketReceiveEvent handler checks instanceof S00PacketDisconnect. Timer.java zeroes balance, sentMessage and lastPreMotion; Speed.java zeroes balance at line 1917. Timer's MMC mode otherwise maintains a balance of 50ms per game tick minus real elapsed time, and only allows timerSpeed above 1 when the balance drops below -1000, so a stale balance would silently disable the exploit after a failed join.

Source: Rise 5.99, dev/rise/module/impl/other/Timer.java

Vanilla hook: PacketReceiveEvent
None: the reset only changes client-side state and never touches the wire. The server sees a normal S00 then connection close.
Variations: Speed.java (dev/rise/module/impl/movement/Speed.java) performs the same balance reset at line 1917 in its packet handler, alongside its S08PacketPlayerPosLook flag logic. Both are Rise 5.99; Rise 6.x drops the pattern in favor of its component-based timer.
Disabler (buffer flush on kick) (Spicy)

Drop the buffered C0FPacketConfirmTransaction queue when the connection dies, so no stale transaction is replayed into the next session.

EventPacket pre handler checks instanceof S00PacketDisconnect and clears C0FPackets. The same queue is cleared on C00Handshake (new connection) and otherwise drained at 500-1250ms intervals via sendPacketNoEvent while the disabler is active. The module also flushes the remainder on disable.

Source: Spicy, info/spicyclient/modules/player/Disabler.java

Vanilla hook: EventPacket (receive side)
Replaying a buffered C0F after relog would desync the fresh connection's transaction sequence and trip transaction checks; the flush-on-disconnect is what keeps the exploit state machine consistent across joins.
Variations: No other client in the corpus clears state on S00PacketDisconnect. Tenacity 6.0's AdvancedDisablerModule and Sigma's Disabler do not reference this packet in their mined files.
PingSpoof (import-only) (LiquidSense Dev)

Import-only reference: LiquidSense Dev's PingSpoof imports S00PacketDisconnect but never constructs or reads it in the shipped body, so the touchpoint is dead code from a planned disconnect flush.

The live logic cancels C0FPacketConfirmTransaction and C00PacketKeepAlive on PacketEvent and re-sends them from onUpdate after a random delay in [minDelay, maxDelay] ms. The S00PacketDisconnect import at line 18 has no call site; the buffered keepalive/transaction map is exactly the structure that needs clearing on kick, so a Spicy-style flush was evidently planned and left unwired.

Source: LiquidSense Dev, net/ccbluex/liquidbounce/features/module/modules/exploit/PingSpoof.java

Vanilla hook: PacketEvent (cancel) and UpdateEvent (flush) via @EventTarget.
None from the import itself. The live delay logic is the standard ping-spoof surface; the missing disconnect flush means a buffered C0F can survive into the next connection if the player is kicked mid-spoof, the hazard Spicy's Disabler guards against by clearing its queue on S00.
Variations: Rise 5.99's Speed/Timer reset timer balance on S00 and Spicy's Disabler clears its C0F buffer; LiquidSense Dev is the only client whose S00 reference is a bare import with no handler.
PacketReceiveEvent (Rise 5.99), EventPacket receive (Spicy) and PacketEvent/UpdateEvent (LiquidSense Dev PingSpoof). All fire before the vanilla handleDisconnect closes the channel; LiquidSense Dev's reference is a dead import with no handler.
Rise 5.99 uses per-module onPacketReceive overrides; Spicy uses a central onEvent dispatcher with instanceof casts. LiquidSense Dev's PingSpoof imports the class without shipping a handler. None of the clients' auto-reconnect logic references this packet, so the hook is purely state cleanup.

anticheat Anti-Cheat Checks

The anticheat corpus treats the disconnect packet as a punishment transport rather than a check surface: Grim and BetterAnticheat construct WrapperPlayServerDisconnect packets to kick flagged players, Artemis wraps PacketPlayOutKickDisconnect in its packet library, and a long tail of Bukkit-era anticheats (Negativity, NoCheatPlus, ThotPatrol, Daedalus, AutoEye, AntiCheatReloaded, AntiCheatPlus) react to kicks through PlayerKickEvent instead of the wire packet. No anticheat inspects the login-state kick itself, because the server initiates it and it carries no client-controlled data.

Kick disconnect wrapper (Artemis) (artemisac-artemis-minecraft-anticheat)

Wraps PacketPlayOutKickDisconnect in Artemis's packet library so the anticheat can read the kick packet on the wire instead of relying on Bukkit events.

GPacketPlayServerKickDisconnect is a GPacket annotated with @PacketLink to the PacketPlayServerKickDisconnect interface and implements ReadableBuffer. It is registered in PacketRepository at SERVER_PLAY + 39 and loaded by PacketExecutor and ProtocolGeneratorDirect, which keeps the play-state packet stream fully typed.

Detects: No detection logic. The wrapper lets Artemis observe every kick the server sends; punishment decisions live elsewhere.

Source: artemisac-artemis-minecraft-anticheat, ac.artemis.packet.spigot/src/main/java/cc/ghast/packet/wrapper/packet/play/server/GPacketPlayServerKickDisconnect.java

Variations: Grim's PacketPluginMessage and BetterAnticheat's PunishmentManager build WrapperPlayServerDisconnect packets directly to perform kicks; Intave's cloud protocol sends a ClientboundDisconnect message instead of a Minecraft packet.
Proxy-detection disconnect (PacketPluginMessage) (GrimAnticheat-Grim)

Kicks players who route through a ViaVersion proxy, using the disconnect packet as the punishment transport.

Watches the PLUGIN_MESSAGE channel for vv:proxy_details. When a player reports proxy details, Grim logs a warning, and if KICK_ON_VIA_PROXY is enabled it sends a WrapperPlayServerDisconnect with the configured disconnect message and then closes the connection. The disconnect packet is the server-side mechanism, not the target.

Detects: Proxy and ViaVersion-on-proxy setups that are incompatible with Grim's simulation, detected through the client's own plugin-message traffic.

Source: GrimAnticheat-Grim, common/src/main/java/ac/grim/grimac/events/packets/PacketPluginMessage.java

Variations: BetterAnticheat's PunishmentManager sends WrapperPlayServerDisconnect for command-driven punishments and its ConfirmationTracker for timeouts; Shard's ShardPlayer builds the same wrapper for its admin disconnect command. All of them use the packet as the kick mechanism.

Wiki Cross-Reference

LOGIN state id 0x00 with a single JSON chat field; client closes channel and shows GuiDisconnected after handling.

Distinct from PLAY-state S40 disconnect; modules use it only as a connection-death signal to flush C0F buffers and timer state.

MCP 1.8.9 S00PacketDisconnect implements Packet dispatching to INetHandlerLoginClient.handleDisconnect; wire serde is readPacketData/writePacketData via readChatComponent.

1.8.9 callers: NetHandlerHandshakeTCP.processHandshake sends new S00PacketDisconnect (line 38) +1 more: https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/server/network/NetHandlerHandshakeTCP.java

Cross-checked against minecraft.wiki (CC BY-SA 3.0) for 1.8.9 accuracy.

Vanilla Internals

Full 1.8.9 logic-class sources that send or handle this packet, stored verbatim.