0x00 S00PacketDisconnect
Kicks the client during the login phase with a JSON chat component reason message (e.g. 'You are banned', 'Server is full').
Published 2026-06-18 · Updated 2026-10-14
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
NetHandlerLoginClient.handleDisconnect()Handler Interface
INetHandlerLoginClientVanilla Source
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 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.
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.
// ===== FILE: Rise 5.99, dev/rise/module/impl/other/Timer.java =====
/*
Copyright Alan Wood 2021
None of this code to be reused without my written permission
Intellectual Rights owned by Alan Wood
*/
package dev.rise.module.impl.other;
import dev.rise.Rise;
import dev.rise.event.impl.motion.PreMotionEvent;
import dev.rise.event.impl.other.WorldChangedEvent;
import dev.rise.event.impl.packet.PacketReceiveEvent;
import dev.rise.event.impl.render.Render2DEvent;
import dev.rise.font.CustomFont;
import dev.rise.module.Module;
import dev.rise.module.api.ModuleInfo;
import dev.rise.module.enums.Category;
import dev.rise.setting.impl.BooleanSetting;
import dev.rise.setting.impl.ModeSetting;
import dev.rise.setting.impl.NumberSetting;
import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.network.login.server.S00PacketDisconnect;
import java.awt.*;
@ModuleInfo(name = "Timer", description = "Changes the game tick speed", category = Category.OTHER)
public final class Timer extends Module {
private final NumberSetting timerSpeed = new NumberSetting("Timer Speed", this, 1.0, 0.1, 10.0, 0.1);
private final ModeSetting mode = new ModeSetting("Mode", this, "Vanilla", "Vanilla", "MMC");
private final BooleanSetting disableOnWorldChange = new BooleanSetting("Disable on World Change", this, false);
private long balance;
private boolean sentMessage;
private long lastPreMotion;
@Override
public void onPreMotion(final PreMotionEvent event) {
if (mode.is("Vanilla"))
mc.timer.timerSpeed = (float) timerSpeed.getValue();
else {
final long lastPreMotion = this.lastPreMotion;
this.lastPreMotion = System.currentTimeMillis();
if (lastPreMotion != 0) {
final long difference = System.currentTimeMillis() - lastPreMotion;
balance += 50;
balance -= difference;
}
if (balance < -1000) {
//Allow timer :)
mc.timer.timerSpeed = (float) timerSpeed.getValue();
} else {
if (timerSpeed.getValue() > 1 && !sentMessage) {
Rise.addChatMessage("Please set timer speed value below 1 to decrease balance");
sentMessage = true;
}
mc.timer.timerSpeed = 1;
}
if (timerSpeed.getValue() < 1) {
mc.timer.timerSpeed = (float) timerSpeed.getValue();
}
}
}
@Override
protected void onDisable() {
mc.timer.timerSpeed = 1.0F;
balance = 0;
}
@Override
public void onPacketReceive(final PacketReceiveEvent event) {
if (event.getPacket() instanceof S00PacketDisconnect) {
balance = 0;
sentMessage = false;
lastPreMotion = 0;
}
}
@Override
public void onWorldChanged(final WorldChangedEvent event) {
if (disableOnWorldChange.isEnabled()) {
this.toggleModule();
}
}
@Override
public void onRender2DEvent(final Render2DEvent event) {
final ScaledResolution sr = new ScaledResolution(mc);
if (mode.is("MMC"))
CustomFont.drawCenteredString("Balance: " + balance, sr.getScaledWidth() / 2d, sr.getScaledHeight() - 60, Color.WHITE.getRGB());
}
}
// NOTE (AI): S00PacketDisconnect only exists in the LOGIN state, so this hook fires exactly when a join attempt dies, before any world exists. The MMC balance accounting adds 50ms per tick and subtracts real elapsed time; zeroing it here guarantees a failed login cannot poison the next session's timer gating. Speed.java uses the identical balance = 0 reset in its own receive handler.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.
// ===== FILE: Spicy, info/spicyclient/modules/player/Disabler.java =====
package info.spicyclient.modules.player;
import java.util.ArrayList;
import java.util.Random;
import org.lwjgl.input.Keyboard;
import info.spicyclient.SpicyClient;
import info.spicyclient.chatCommands.Command;
import info.spicyclient.events.Event;
import info.spicyclient.events.listeners.EventPacket;
import info.spicyclient.events.listeners.EventSendPacket;
import info.spicyclient.events.listeners.EventUpdate;
import info.spicyclient.modules.Module;
import info.spicyclient.notifications.Color;
import info.spicyclient.notifications.NotificationManager;
import info.spicyclient.notifications.Type;
import info.spicyclient.util.MovementUtils;
import info.spicyclient.util.Timer;
import net.minecraft.entity.player.PlayerCapabilities;
import net.minecraft.network.Packet;
import net.minecraft.network.handshake.client.C00Handshake;
import net.minecraft.network.login.server.S00PacketDisconnect;
import net.minecraft.network.play.client.C00PacketKeepAlive;
import net.minecraft.network.play.client.C03PacketPlayer;
import net.minecraft.network.play.client.C0CPacketInput;
import net.minecraft.network.play.client.C0FPacketConfirmTransaction;
import net.minecraft.network.play.client.C13PacketPlayerAbilities;
import net.minecraft.network.play.server.S08PacketPlayerPosLook;
import net.minecraft.network.play.server.S32PacketConfirmTransaction;
public class Disabler extends Module {
public Disabler() {
super("Disabler", Keyboard.KEY_NONE, Category.PLAYER);
}
public static transient boolean watchdog = false;
public static transient ArrayList<C0FPacketConfirmTransaction> C0FPackets = new ArrayList<C0FPacketConfirmTransaction>();
public static transient Timer ping = new Timer();
@Override
public void onEnable() {
NotificationManager.getNotificationManager().createNotification("Relog for the disabler to take effect", "", true, 5000, Type.INFO, Color.PINK);
watchdog = false;
}
@Override
public void onDisable() {
watchdog = false;
for (C0FPacketConfirmTransaction p : C0FPackets) {
mc.getNetHandler().getNetworkManager().sendPacketNoEvent(p);
}
C0FPackets.clear();
}
@Override
public void onEvent(Event e) {
if (e instanceof EventUpdate && e.isPre()) {
this.additionalInformation = "Hypixel";
PlayerCapabilities playerCapabilities = new PlayerCapabilities();
playerCapabilities.isFlying = true;
playerCapabilities.allowFlying = true;
//playerCapabilities.setFlySpeed((float) ((Math.random() * (9.0 - 0.1)) + 0.1));
playerCapabilities.setFlySpeed((float) ((Math.random() * (9.0 - 0.1)) + 0.1));
playerCapabilities.isCreativeMode = true;
mc.getNetHandler().getNetworkManager().sendPacketNoEvent(new C13PacketPlayerAbilities(playerCapabilities));
// Added this
if (SpicyClient.config.fly.isEnabled()) {
mc.getNetHandler().getNetworkManager().sendPacketNoEvent(new C13PacketPlayerAbilities(playerCapabilities));
}
if (ping.hasTimeElapsed(500 + (new Random()).nextInt(750), true) && C0FPackets.size() > 0) {
mc.getNetHandler().getNetworkManager().sendPacketNoEvent(C0FPackets.get(0));
C0FPackets.remove(0);
}
}
if (e instanceof EventPacket && e.isPre()) {
if (((EventPacket)e).packet instanceof S00PacketDisconnect) {
C0FPackets.clear();
}
}
if (e instanceof EventSendPacket && e.isPre()) {
EventSendPacket event = (EventSendPacket) e;
if (event.packet instanceof C00Handshake) {
C0FPackets.clear();
}
if (event.packet instanceof C0FPacketConfirmTransaction) {
C0FPacketConfirmTransaction packetConfirmTransaction = (C0FPacketConfirmTransaction)event.packet;
//mc.getNetHandler().getNetworkManager().sendPacketNoEvent(new C0FPacketConfirmTransaction(2147483647, packetConfirmTransaction.getUid(), false));
//mc.getNetHandler().getNetworkManager().sendPacketNoEvent(new C0FPacketConfirmTransaction(1147483647, packetConfirmTransaction.getUid(), false));
//packetConfirmTransaction.setAccepted(new Random().nextBoolean());
//packetConfirmTransaction.setWindowId(Integer.MIN_VALUE + new Random().nextInt(1000));
//packetConfirmTransaction.setUid(Short.MAX_VALUE);
//mc.getNetHandler().getNetworkManager().sendPacketNoEvent(new C0FPacketConfirmTransaction(Integer.MIN_VALUE, Short.MAX_VALUE, true));
C0FPackets.add(packetConfirmTransaction);
e.setCanceled(true);
}
if (event.packet instanceof C00PacketKeepAlive) {
//mc.getNetHandler().getNetworkManager().sendPacketNoEvent(new C00PacketKeepAlive(-2147483648 + (new Random()).nextInt(100)));
//e.setCanceled(true);
}
if (event.packet instanceof C0CPacketInput) {
e.setCanceled(true);
}
}
}
}
// NOTE (AI): The receive-side hook clears the C0F buffer the moment the server drops the handshake; the buffer is otherwise drained one packet every 500-1250ms via sendPacketNoEvent. Keeping stale transactions out of the next connection preserves the window/uid sequence the Hypixel Watchdog bypass depends on. The keepalive branch next to it is commented out, showing the mode was tuned for transaction-based disabling only.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.
// ===== FILE: LiquidSense Dev, net/ccbluex/liquidbounce/features/module/modules/exploit/PingSpoof.java =====
/*
* LiquidBounce Hacked Client
* A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge.
* https://github.com/CCBlueX/LiquidBounce/
*/
package net.ccbluex.liquidbounce.features.module.modules.exploit;
import net.ccbluex.liquidbounce.LiquidBounce;
import net.ccbluex.liquidbounce.event.*;
import net.ccbluex.liquidbounce.features.module.Module;
import net.ccbluex.liquidbounce.features.module.ModuleCategory;
import net.ccbluex.liquidbounce.features.module.ModuleInfo;
import net.ccbluex.liquidbounce.features.module.modules.movement.Fly;
import net.ccbluex.liquidbounce.utils.misc.RandomUtils;
import net.ccbluex.liquidbounce.utils.timer.TimeUtils;
import net.ccbluex.liquidbounce.value.IntegerValue;
import net.minecraft.network.Packet;
import net.minecraft.network.login.server.S00PacketDisconnect;
import net.minecraft.network.play.client.C00PacketKeepAlive;
import net.minecraft.network.play.client.C0CPacketInput;
import net.minecraft.network.play.client.C0FPacketConfirmTransaction;
import net.minecraft.network.play.client.C16PacketClientStatus;
import net.minecraft.network.play.server.S27PacketExplosion;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
@ModuleInfo(name = "PingSpoof", description = "Spoofs your ping to a given value.", category = ModuleCategory.EXPLOIT)
public class PingSpoof extends Module {
private final IntegerValue maxDelayValue = new IntegerValue("MaxDelay", 1000, 0, 5000) {
@Override
protected void onChanged(final Integer oldValue, final Integer newValue) {
final int minDelayValue = PingSpoof.this.minDelayValue.get();
if(minDelayValue > newValue)
set(minDelayValue);
}
};
private final IntegerValue minDelayValue = new IntegerValue("MinDelay", 500, 0, 5000) {
@Override
protected void onChanged(final Integer oldValue, final Integer newValue) {
final int maxDelayValue = PingSpoof.this.maxDelayValue.get();
if(maxDelayValue < newValue)
set(maxDelayValue);
}
};
private final HashMap<Packet<?>, Long> packetsMap = new HashMap<>();
@Override
public void onDisable() {
packetsMap.clear();
}
@EventTarget
public void onPacket(final PacketEvent event) {
final Packet packet = event.getPacket();
if ((packet instanceof C0FPacketConfirmTransaction || packet instanceof C00PacketKeepAlive) && !(mc.thePlayer.isDead || mc.thePlayer.getHealth() <= 0) && !packetsMap.containsKey(packet)) {
synchronized(packetsMap) {
packetsMap.put(packet, System.currentTimeMillis() + TimeUtils.randomDelay(minDelayValue.get(), maxDelayValue.get()));
}
event.cancelEvent();
}
}
@EventTarget(ignoreCondition = true)
public void onUpdate(final UpdateEvent event) {
try {
synchronized(packetsMap) {
for(final Iterator<Map.Entry<Packet<?>, Long>> iterator = packetsMap.entrySet().iterator(); iterator.hasNext(); ) {
final Map.Entry<Packet<?>, Long> entry = iterator.next();
if(entry.getValue() < System.currentTimeMillis()) {
mc.getNetHandler().addToSendQueue(entry.getKey());
iterator.remove();
}
}
}
}catch(final Throwable t) {
t.printStackTrace();
}
}
}
// NOTE (AI): The import is dead in the shipped file: a full grep of the body shows S00PacketDisconnect only on line 18, next to the imports the module actually uses (C00PacketKeepAlive, C0FPacketConfirmTransaction), which is why the mined corpus caught it. The absence of a flush handler is the interesting fact for this packet page.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.
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.
// ===== FILE: artemisac-artemis-minecraft-anticheat, ac.artemis.packet.spigot/src/main/java/cc/ghast/packet/wrapper/packet/play/server/GPacketPlayServerKickDisconnect.java =====
package cc.ghast.packet.wrapper.packet.play.server;
import ac.artemis.packet.protocol.ProtocolVersion;
import ac.artemis.packet.spigot.protocol.PacketLink;
import ac.artemis.packet.wrapper.server.PacketPlayServerKickDisconnect;
import cc.ghast.packet.buffer.ProtocolByteBuf;
import ac.artemis.packet.spigot.wrappers.GPacket;
import cc.ghast.packet.wrapper.packet.ReadableBuffer;
import java.util.UUID;
@PacketLink(PacketPlayServerKickDisconnect.class)
public class GPacketPlayServerKickDisconnect extends GPacket implements PacketPlayServerKickDisconnect, ReadableBuffer {
public GPacketPlayServerKickDisconnect(UUID player, ProtocolVersion version) {
super("PacketPlayOutKickDisconnect", player, version);
}
@Override
public void read(ProtocolByteBuf byteBuf) {
}
}
// NOTE (AI): This is the play-state kick wrapper (PacketPlayOutKickDisconnect). The login-state S00PacketDisconnect is a different class; Artemis registers the login variant as PacketLoginOutDisconnect at SERVER_LOGIN + 1 without a wrapper file.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.
// ===== FILE: GrimAnticheat-Grim, common/src/main/java/ac/grim/grimac/events/packets/PacketPluginMessage.java =====
package ac.grim.grimac.events.packets;
import ac.grim.grimac.GrimAPI;
import ac.grim.grimac.utils.anticheat.LogUtil;
import ac.grim.grimac.utils.anticheat.MessageUtil;
import ac.grim.grimac.utils.common.arguments.CommonGrimArguments;
import ac.grim.grimac.utils.viaversion.ViaVersionUtil;
import com.github.retrooper.packetevents.event.PacketListenerAbstract;
import com.github.retrooper.packetevents.event.PacketReceiveEvent;
import com.github.retrooper.packetevents.protocol.packettype.PacketType;
import com.github.retrooper.packetevents.protocol.player.User;
import com.github.retrooper.packetevents.wrapper.configuration.client.WrapperConfigClientPluginMessage;
import com.github.retrooper.packetevents.wrapper.play.client.WrapperPlayClientPluginMessage;
import com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerDisconnect;
import org.jetbrains.annotations.NotNull;
public class PacketPluginMessage extends PacketListenerAbstract {
public void onPacketReceive(@NotNull PacketReceiveEvent event) {
if (event.getPacketType() == PacketType.Play.Client.PLUGIN_MESSAGE) {
WrapperPlayClientPluginMessage packet = new WrapperPlayClientPluginMessage(event);
checkChannel(event.getUser(), packet.getChannelName());
} else if (event.getPacketType() == PacketType.Configuration.Client.PLUGIN_MESSAGE) {
WrapperConfigClientPluginMessage packet = new WrapperConfigClientPluginMessage(event);
checkChannel(event.getUser(), packet.getChannelName());
}
}
private void checkChannel(User user, String channelName) {
if (!"vv:proxy_details".equals(channelName)) return;
final boolean usingProxy = ProxyAlertMessenger.isUsingProxy();
// warn if they are using a proxy
if (usingProxy) {
LogUtil.warn(
user.getName() + " seems to have connected through a proxy running ViaVersion. "
+ "Having ViaVersion installed on the proxy is incompatible with GrimAC and causes many issues. "
+ "Please remove ViaVersion from your proxy server and install it on your backend servers instead."
);
}
// kick if they do not have a proxy configured OR they have ViaVersion installed on the backend
if (CommonGrimArguments.KICK_ON_VIA_PROXY.value() && (!usingProxy || ViaVersionUtil.isAvailable)) {
LogUtil.warn(user.getName() + " is being disconnected for sending ViaVersion proxy data.");
try {
WrapperPlayServerDisconnect disconnect = new WrapperPlayServerDisconnect(
MessageUtil.miniMessage(GrimAPI.INSTANCE.getConfigManager().getDisconnectPacketError())
);
user.sendPacket(disconnect);
} catch (Exception e) {
LogUtil.warn("Failed to send disconnect packet to kick " + user.getName() + "!");
}
user.closeConnection();
}
}
}
// NOTE (AI): The WrapperPlayServerDisconnect here is the play-state kick packet. Grim also sends this wrapper from GrimPlayer.disconnect and LatencyUtils for transaction errors, which is the family of disconnect usage the corpus documents.Related Packets
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
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.