0x01 C01PacketPing

Sends a client-side timestamp for the server to echo back. The client calculates round-trip latency from the difference.

Serverbound (Client → Server) · STATUS · net/minecraft/network/status/client/C01PacketPing.java

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

statusserverpinglatency
Comprehensive 8/8

Fields

FieldTypeDescription
clientTimelong (8 bytes)Current system time in milliseconds (System.currentTimeMillis())

Wire Encoding

FieldTypeNotes
Client TimelongSystem.currentTimeMillis() at send time

MCP References

MCPNetHandlerStatusServer.processPing()

Handler Interface

HNDINetHandlerStatusServer

Notes

Sent after receiving S00PacketServerInfo. The server echoes the exact same long value in S01PacketPong. The client computes latency as receiveTime - sentTime.

Vanilla Source

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

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

Deep Dive

Role in the protocol

C01PacketPing is the STATUS-state latency probe. After S00PacketServerInfo arrives, OldServerPinger sends it with a single long field, and the server echoes the exact value back in S01PacketPong. The client computes the row latency as receiveTime minus sentTime, averages it over the last few samples, and displays it in the server list. RealmsServerStatusPinger sends the same packet with Realms.currentTimeMillis() on realm connections. This is the only ping in the protocol that exists outside the PLAY state; the tab-list ping later comes from the C00/S00 keepalive pair.

Vanilla handling

NetHandlerStatusServer.processPing is a pure echo: it sends S01PacketPong(packetIn.getClientTime()) with no transformation and no state change. OldServerPinger tracks a counter (field_175092_e) incremented per ping cycle and sends C01PacketPing with it; the pong handler then computes the round-trip against the stored send time. The packet's long value is opaque to the server: it never reads it beyond echoing, which is why the value can be any client-chosen timestamp.

Why clients touch it

Only Rise 6.1.30 and 6.2.4 BlinkComponent reference C01PacketPing, in the same pre-play exemption list as the other handshake packets. No ping-spoof module in the 8 clients targets it: every PingSpoof implementation operates on C00PacketKeepAlive in the PLAY state, where the server folds the round-trip into the tab-list ping EMA. Spoofing the STATUS ping would only fake the user's own server-list readout, which is a purely local number, so no module bothers. The corpus confirms the packet is otherwise untouched vanilla plumbing.

Exploit surface

There is no meaningful exploit surface. The value is client-chosen and server-echoed, so a client could lie about its own latency, but the result is displayed only to itself on the multiplayer screen and vanishes on join. Server scanners could skip the ping to save a round-trip per host, but none of the 8 clients implements one. The only code interaction is defensive: BlinkComponent must not buffer this packet, or the pinger's latency sample would stall and the server row would show a stale or zero ping.

Server-Side Handling

NetHandlerStatusServer.processPing sends S01PacketPong with the same long value, no validation, no rate limiting, no state change. The status handler is stateless by design: it answers queries and pings and expects the client to close the connection.

Protocol Analysis

STATUS state, id 0x01, one 8-byte long. Must follow C00PacketServerQuery and S00PacketServerInfo. The server never interprets the value; it is a client-chosen timestamp (OldServerPinger uses a counter, RealmsServerStatusPinger uses currentTimeMillis). The same field name family (C01) collides with the LOGIN-state C01PacketEncryptionResponse and the PLAY-state C01PacketChatMessage, so id-based dispatch depends entirely on the connection state.

Anti-Cheat Landscape

No anti-cheat measures the STATUS ping: it carries no player identity, no timing that persists, and no gameplay state. Anti-cheat plugins only ever see PLAY-state traffic. The only consumers are the server-list UI and reflection tools, neither of which is a flagging surface.

implementation Implementation Cases

The STATUS-state latency probe: client sends an arbitrary long, server echoes it, client measures the round-trip for the server list. No module spoofs it, because the result is a local display value; the sole corpus hit is BlinkComponent's exemption list.

BlinkComponent (Rise 6.1.30, Rise 6.2.4)

Exempt C01PacketPing from blink buffering so the server-list latency sample completes while blink is armed.

The hard-coded pre-play exemption list includes C01PacketPing alongside C00Handshake, C00PacketLoginStart, C00PacketServerQuery and C01PacketEncryptionResponse; the PacketSendEvent listener returns before the blink queue logic, so the ping always reaches the wire.

Source: Rise 6.2.4, Client-release2/Client/src/main/java/com/alan/clients/component/impl/player/BlinkComponent.java

Vanilla hook: PacketSendEvent
None: passed through unmodified; the STATUS exchange is invisible to anti-cheats by construction.
Variations: Rise 6.1.30 is byte-identical. No other client in the corpus has a module-level reference.
PacketSendEvent in Rise 6.x BlinkComponent only.
All other clients use the bundled vanilla OldServerPinger/RealmsServerStatusPinger, which send C01PacketPing directly on the status NetworkManager with no module involvement.

anticheat Anti-Cheat Checks

The status ping is a pure echo probe used by the server list, and the corpus index is effectively empty of checks: FlopAC defines the PING constant for PacketStatusInPing in NMSObject and Packet, and Artemis wraps it as PacketStatusClientPing. The value is client-chosen and server-echoed for a local display, so no anticheat measures it. Anti-cheat timing only exists in the play state, through the C00 keepalive pair.

Wiki Cross-Reference

STATUS serverbound 0x01 with one 8-byte long clientTime; server echoes it verbatim in S01 pong.

Value is opaque to the server; vanilla sends currentTimeMillis or a counter and measures list latency locally.

Server-list probe only; shares id 0x01 with LOGIN encryption and PLAY chat, routed by connection state.

MCP 1.8.9 C01PacketPing implements Packet dispatching to INetHandlerStatusServer.processPing; wire serde is readPacketData/writePacketData via readLong.

1.8.9 callers: OldServerPinger.? sends new C01PacketPing (line 151) +1 more: https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/client/network/OldServerPinger.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.

Module Analyses Using C01PacketPing

Full source walkthroughs of the modules and anti-cheats that use this packet.