0x00 C00PacketKeepAlive

Response to S00PacketKeepAlive. The client echoes back the server's keep-alive ID.

Serverbound (Client → Server) · PLAY · net/minecraft/network/play/client/C00PacketKeepAlive.java

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

connectionplayer
Comprehensive 8/8

Fields

FieldTypeDescription
keyintThe keep-alive ID received from the server

Wire Encoding

FieldTypeNotes
Keep Alive IDintEchoed from S00PacketKeepAlive

MCP References

MCPNetHandlerPlayServer.processKeepAlive()

Handler Interface

HNDINetHandlerPlayServer

Notes

If the client doesn't respond within ~30 seconds, the server will disconnect them.

Vanilla Source

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

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

Deep Dive

Role in the protocol

Keepalive is the protocol's liveness and latency probe. The server sends S00PacketKeepAlive with a monotonically increasing key (server tick-based), the client must echo it back as C00PacketKeepAlive with the same key. NetHandlerPlayServer.processKeepAlive compares the echoed key to the stored field_147378_h and folds the round-trip time into the player's ping EMA: ping = (ping * 3 + delta) / 4. It is the only packet in the play state whose sole purpose is timing, which makes it the backbone of ping spoofing, disconnect-detection, and timer-based disabler modes.

Vanilla handling

Client side, NetHandlerPlayClient.handleKeepAlive immediately echoes: this.addToSendQueue(new C00PacketKeepAlive(packetIn.func_149134_c()));. Server side, processKeepAlive is a pure timing check: if the key matches, it recomputes ping; otherwise it silently ignores. Note there is no per-connection timeout in vanilla 1.8.9 server code for a missing keepalive response; timeouts are enforced by the network layer (read timeout) or by anti-cheat plugins. This asymmetry is exactly what ping-spoof modules exploit.

Why clients touch it

The 8 clients show three distinct families. (1) Ping spoofers (Rise 5.99 PingSpoof, Rise 6.x PingSpoofComponent, Sigma 4.11 PingSpoof, Spicy PingSpoof) buffer the packet and release it late. (2) Disablers (Memeware 7.3 Disabler, Sigma 4.11 Disabler, Rise 6.x KeepAliveDisabler/DynamicPVPDisabler/LunarDisabler/Verus2Disabler, Spicy Disabler, Tenacity 6.0 AdvancedDisablerModule) cancel or mutate the key to break server-side timing heuristics on specific anti-cheats. (3) Movement modules that need to reset the server-side timer or cancel all stateful packets (Nekoware v1 Fly, Spicy Bhop/BackupFly/Fly, Rise 5.99 Fly/LongJump/Speed, Sigma Blink, Spicy Blink, Rise BlinkAntiVoid/WatchdogAntiVoid).

Exploit surface

Delaying the echo inflates the server's measured ping. Mutating the key (Memeware's Mineplex Combat mode subtracts a random 3..127 from the key) makes the server's key comparison fail, so the ping EMA is never updated, freezing the displayed ping and confusing plugins that use keepalive gaps to estimate lag or detect timer. Cancelling keepalive outright is the crude version: safe only while the server has no keepalive timeout, which is why disabler modes pair the cancel with periodic re-sends (Sigma's Erisium mode re-sends lastKey every 1500 ms).

Server-Side Handling

NetHandlerPlayServer.processKeepAlive (line ~1015 in the bundled 1.8.9 sources): if packetIn.getKey() == field_147378_h, ping = (ping * 3 + (now - lastPingTime)) / 4. No response to a wrong or missing key: the packet is simply ignored. The client handler echoes unconditionally. Because wrong keys are silently dropped, mutating the key is undetectable from the packet stream alone: the server just never updates ping.

Protocol Analysis

Serverbound C00 and clientbound S00 share the same int key field (writeVarIntToBuffer / readVarIntFromBuffer in 1.8.9 MCP; the key is a plain int). S00 is sent roughly every second of play time (server tick counter). C00 must be sent on the same connection before the next S00 for the ping EMA to converge. In practice modules intercept C00 in PacketSendEvent and S00 in PacketReceiveEvent.

Anti-Cheat Landscape

NCP and AAC track keepalive timing to distinguish real latency from timer abuse; a frozen or wildly inflated ping is a classic timer/fly flag. Verus-era servers (the Rise 6.x Verus2Disabler, Memeware's 'Latest Verus' mode) correlate keepalive gaps with transaction (C0F) gaps, so disablers buffer C00 and C0F together and flush them together after a fixed delay. The risk trade-off: pure delay is stealthy but does nothing against servers that timeout dead connections; cancellation is strong but requires knowing the server has no keepalive timeout.

implementation Implementation Cases

The timing backbone of the play state: server sends S00 with a key, client echoes it, server folds round-trip into a ping EMA. Ping spoofers delay the echo, disablers cancel or corrupt the key, and a surprising number of movement modules (Fly, Bhop, Blink) cancel it as collateral when they need to stop all stateful traffic.

PingSpoof (Rise 5.99, Rise 6.1.30, Rise 6.2.4, Sigma 4.11, Spicy, LiquidSense Dev)

Inflate the player's measured ping by delaying keepalive (and transaction) echoes.

Intercept S00 on receive; on the send side, cancel C00 (and usually C0F) and park it in a map keyed by release timestamp; on each pre-motion tick, flush entries whose delay has elapsed via sendPacket (bypassing the event bus).

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

Vanilla hook: PacketSendEvent (cancel + park), PreMotionEvent (flush), PacketReceiveEvent (S08 resets the timer).
Pure delay is low-risk: the server only sees late echoes. Pairing C0F with C00 keeps transaction order consistent, which matters because modern anti-cheats correlate the two gaps.
Variations: Sigma 4.11 and Spicy implement the same buffer-and-release pattern on their own event buses. Rise 6.x moves this into PingSpoofComponent used by both 6.1.30 and 6.2.4. LiquidSense Dev's PingSpoof parks C00 and C0F together in a packetsMap with a random MinDelay/MaxDelay release time and flushes through addToSendQueue from an ignoreCondition UpdateEvent, skipping buffering while the player is dead or below one health.
Disabler (Memeware 7.3, Sigma 4.11, Rise 6.1.30, Rise 6.2.4, Spicy, Tenacity 6.0, LiquidSense Dev)

Break anti-cheat timing heuristics that use keepalive as a latency reference.

Mode-dependent: cancel the echo entirely, corrupt the key so the server silently drops it, or re-send a stale key on a timer. Memeware's Mineplex Combat mode corrupts; Sigma's Faithful/Erisium/SagePvP/ColdNetwork modes cancel and Erisium re-sends lastKey every 1500 ms; Rise 6.x splits this into KeepAliveDisabler, DynamicPVPDisabler, LunarDisabler and Verus2Disabler, each tuned to a server family.

Source: Memeware 7.3, me/memewaredevs/client/module/exploit/Disabler.java

Vanilla hook: PacketOutEvent (cancel or mutate the live packet object).
Key corruption is stealthier than cancellation because the server's response is identical to a dropped packet: ping just stops updating. The random 3..127 offset keeps the mutation from looking like a fixed-value spoof.
Variations: Sigma 4.11 (Faithful/Erisium/SagePvP/ColdNetwork modes), Tenacity 6.0 AdvancedDisablerModule, and the Rise 6.x per-server disabler suite (KeepAliveDisabler, DynamicPVPDisabler, LunarDisabler, Verus2Disabler). LiquidSense Dev's Disabler keeps separate queues for C00 and C0F, cancels them on PacketEvent, and re-sends spoofed keepalives with an incremented keepAliveId on a randomized C00-Base delay while the watchdog sequence runs.
Fly (timer reset) (Nekoware v1 private, Rise 5.99, Spicy)

Cancel keepalive as collateral when a movement exploit needs to stop all stateful serverbound traffic.

Movement modules that spoof position or use damage tricks cancel every packet the server treats as stateful (C0F, C00) and reset their own timer. Nekoware v1's Fly cancels C0FPacketConfirmTransaction and C00PacketKeepAlive together; the point is not ping spoofing but keeping the server's view of the player frozen while the client replays position packets.

Source: Nekoware v1 private, me/nekoWare/client/module/movement/Fly.java

Vanilla hook: PacketOutEvent.
Blunt but effective on servers without keepalive timeouts. The visible side effect is a frozen ping on the tab list, which staff can notice.
Variations: Spicy's BackupFly, Bhop, Fly, AutoLog and Blink all reference C00PacketKeepAlive with the same cancel pattern; Rise 5.99's Fly, LongJump, Speed, Freecam and BlinkAntiVoid touch it via their own packet handlers.
Blink / AntiVoid (Sigma 4.11, Rise 6.1.30, Rise 6.2.4, Spicy)

Buffer-and-release: keepalive is one of the packet types held while the client 'blinks' (stays frozen server-side).

Blink cancels all serverbound packets including C00 while enabled, then releases them in order on disable. AntiVoid variants (Rise 6.x BlinkAntiVoid, WatchdogAntiVoid) do the same but release early if the player would fall into the void. The keepalive is included so the server keeps receiving a steady stream when the blink window is short.

Source: Sigma 4.11, info/sigmaclient/module/impl/player/Blink.java; Spicy, modules/movement/Blink.java

Vanilla hook: PacketSendEvent / custom packet event.
Long blink windows flag on every serious anti-cheat; the keepalive handling here is incidental, not the point of the module.
Variations: Rise 6.x implements it as BlinkComponent used by Blink, BlinkAntiVoid and WatchdogAntiVoid in both 6.1.30 and 6.2.4.
Fly (keepalive mode) (LiquidSense Dev)

Fly mode that sends a fresh C00PacketKeepAlive every tick while flying at vanilla speed, using keepalive spam instead of position mutation to hold the server's movement checks.

The keepalive case in the mode switch sends an empty C00PacketKeepAlive (default key 0) via addToSendQueue, sets isFlying false, zeroes motion, and strafes at vanillaSpeed; jump and sneak keys add vertical motion. The same module carries aac3, flag, minesecure and other modes that do not touch C00.

Source: LiquidSense Dev, net/ccbluex/liquidbounce/features/module/modules/movement/Fly.java

Vanilla hook: UpdateEvent / PacketEvent on LiquidBounce's event bus; send via mc.getNetHandler().addToSendQueue.
Keepalive spam with key 0 is a known NCP-era anti-flag: the server sees a steady keepalive stream while movement is handled purely client-side, so timer and fly checks that depend on keepalive timing never see a gap.
Variations: No other client in the corpus sends C00 from a Fly module; the other Fly-family hits cancel it.
LuaEventPacket (November Recode 2.0)

Expose the packet to November's Lua scripting API as an id plus direction pair, so scripts can filter on C00 without touching obfuscated class names.

The static initializer maps C00PacketKeepAlive.class to 0x00 in a packetIds table (the table exists because obfuscation makes reflection unusable); the wrapper constructor reads the id via getOrDefault and sets direction to 'out' or 'in' from the EventPacket type.

Source: November Recode 2.0, scripting/wrapper/event/LuaEventPacket.java

Vanilla hook: EventPacket.Out / EventPacket.In routed through the scripting bridge; scripts read packet and direction.
None; this is a read-only mapping, the script payload is the risk surface.
PacketSendEvent (serverbound C00) and PacketReceiveEvent (clientbound S00) on every client; Rise 6.x uses its component system (PingSpoofComponent, KeepAliveDisabler). LiquidSense Dev and November Recode 2.0 hook the same PacketEvent/EventPacket surfaces; November additionally exposes C00 to Lua scripts via LuaEventPacket.
Classic clients (Memeware, Nekoware, Sigma, Spicy) mutate or cancel the packet object inside the event. Rise 5.99 and 6.x replace the packet on the event (event.setPacket) or flush via PacketUtil.sendPacket, which bypasses the event bus entirely. LiquidSense Dev sends via mc.getNetHandler().addToSendQueue and cancels via PacketEvent.cancelEvent; November Recode 2.0 wraps the packet in LuaEventPacket for scripting and uses its own EventPacket.Out bus.

anticheat Anti-Cheat Checks

The keepalive echo is the anticheat's latency reference. Serious anticheats issue their own keepalives (Frequency TickManager, FlopAC KeepAliveHandler) or track the vanilla ones, and fold the C00 round-trip into a ping value that movement checks read. Ping spoofers delay or duplicate the echo, so ping-spoof checks compare keepalive RTT against transaction RTT (Frequency PingSpoofA) or validate the echoed ID against the list of server-issued IDs (Grim BadPacketsO, Hydro BadPacketsE/F). Because a frozen or inflated ping breaks timer discrimination, timer checks gate their acceptance on keepalive confirmation (Frequency TimerA) and NCP rate-limits keepalive replies outright.

PingSpoofA (Frequency) (ElevatedDev-Frequency, MinecraftUserHAN1110-FrequencyPlus, splatboydev-Degrade, AimbotPvP-azure-anticheat, Incognitolol-Hydro, JTXOfficial-FlopAC, artemisac-artemis-minecraft-anticheat)

Cross-checks the keepalive round-trip against the transaction round-trip to catch ping spoofers that delay keepalive echoes.

On every flying packet, compares the ping computed from keepalive echoes (playerData.getKeepAlivePing()) with the ping computed from transaction echoes. If the transaction ping exceeds the keepalive ping by more than 50 ms, outside the first 10 ticks and the lag/teleport/TPS exemptions, the check fails. The premise: a ping spoof buffers C00PacketKeepAlive and flushes it late, so the keepalive ping stays artificially low while transaction traffic reveals the real latency.

Detects: Ping spoofers that delay the keepalive echo, and clients that fake a low tab-list ping.

Source: ElevatedDev-Frequency, src/main/java/xyz/elevated/frequency/check/impl/pingspoof/PingSpoofA.java

Variations: Azure PingSpoof measures the delay between the client's last move packet and its keepalive reply and flags anything above roughly 150 ms. Hydro PingSpoofA, FlopAC PingSpoofA-D and Artemis PingSpoofProtocol, PingSpoofDuplicate and PingSpoofIdDupe implement the same cross-signal idea on their own trackers. FrequencyPlus and Degrade carry near-identical copies of the Frequency check.
BadPacketsO keepalive ID validation (Grim) (GrimAnticheat-Grim, Incognitolol-Hydro, AimbotPvP-azure-anticheat, ElevatedDev-Frequency, artemisac-artemis-minecraft-anticheat)

Rejects keepalive replies whose ID was never issued by the server, catching fabricated echoes, key-mutating disablers and duplicate replays.

Records every server-issued keepalive ID in a linked list on the send side, then on each C00 reply scans the list for the echoed ID and drains entries up to the match. A reply that matches no pending ID is flagged and cancelled. Listening to both directions lets the check tell a legitimately delayed echo from a fabricated one: a real echo always corresponds to an outstanding server ID.

Detects: Ping spoofers that fabricate keepalive IDs, disabler modes that corrupt the key so the server silently drops it, and duplicate-echo replay.

Source: GrimAnticheat-Grim, common/src/main/java/ac/grim/grimac/checks/impl/badpackets/BadPacketsO.java

Variations: Hydro BadPacketsE flags keepalive IDs that were never sent and BadPacketsF flags a duplicate of the current ID; Azure BadPacketsG flags a keepalive arriving more than 550 ms after the last move packet; Frequency BadPacketsP and Artemis PingSpoofIdDupe and PingSpoofDuplicate do the same ID bookkeeping on their own packet wrappers.
KeepAliveFrequency (NoCheatPlus) (Updated-NoCheatPlus-NoCheatPlus)

Limits the rate of keepalive replies and maintains the lastKeepAliveTime reference that the net and godmode checks use to separate real latency from timer abuse.

The ProtocolLib KeepAliveAdapter records every incoming C00 reply with its ID shape and updates data.lastKeepAliveTime; the check itself buckets reply timestamps into a frequency bucket model and cancels when the first bucket exceeds 1, with modeled-boundary exceptions so two replies timestamped in the same millisecond do not flag. A startup delay after join and duplicate-ID handling suppress the false positives that join-time bursts would cause.

Detects: Keepalive floods, duplicate or spoofed keepalive spam, and disabler modes that fire extra echoes to reset server-side timing heuristics.

Source: Updated-NoCheatPlus-NoCheatPlus, NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/net/KeepAliveFrequency.java

Variations: Fight GodMode reads lastKeepAliveTime with CheckUtils.guessKeepAliveTime as fallback; Artemis ConnectionPreProcessor and AntiHaxerman ConnectionTracker maintain equivalent per-player keepalive ping state that their timer and lag checks consume.
TimerA (Frequency) (ElevatedDev-Frequency, MinecraftUserHAN1110-FrequencyPlus, splatboydev-Degrade, GrimAnticheat-Grim, JTXOfficial-FlopAC, artemisac-artemis-minecraft-anticheat, AimbotPvP-azure-anticheat, TawnyE-TruthfulAC, Tecnio-AntiHaxerman)

Detects timer speed by measuring movement packet cadence against the 50 ms tick, gated on keepalive confirmation that the server tick actually ran.

On each flying packet, computes the delay since the previous one, feeds it into a 20-sample MovingStats deviation model, and accumulates an allowance of +50 ms per expected tick minus the observed delay. The check only runs when the current server tick has a matching keepalive echo in ConnectionManager, so lagged or desynced connections are excluded. A persistent deviation under the 7.07 threshold with a positive allowance balance flags.

Detects: Timer cheats that raise the client game speed, and indirectly ping spoofing, because a spoofed low ping keeps the keepalive acceptance gate open.

Source: ElevatedDev-Frequency, src/main/java/xyz/elevated/frequency/check/impl/timer/TimerA.java

Variations: Grim Timer and TimerLimit use the same balance concept with a packet-type whitelist that deliberately excludes keepalive from the count; FlopAC TimerA/B and Artemis TimerBalance, TimerGladUrBad and TimerReverse add statistical scoring; Azure Timer and TimerB average timer speed over a deque; TruthfulAC TimerA keeps a nanosecond timer balance; AntiHaxerman TimerA runs a balance system on the Artemis packet wrapper.

Wiki Cross-Reference

1.8.9 key is a plain int coded as VarInt (readVarIntFromBuffer/writeVarIntToBuffer), not a long.

PLAY serverbound 0x00; client echoes the S00 key and the server folds RTT into a ping average, ignoring mismatched keys.

Server issues S00 about once per second; a missing echo leads to read-timeout disconnect, not an instant kick.

MCP 1.8.9 C00PacketKeepAlive implements Packet dispatching to INetHandlerPlayServer.processKeepAlive; wire serde is readPacketData/writePacketData via readVarIntFromBuffer.

1.8.9 callers: GuiDownloadTerrain.updateScreen sends new C00PacketKeepAlive (line 44) +1 more: https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/client/gui/GuiDownloadTerrain.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.