0x00 C00PacketLoginStart

Starts the login process by sending the player's GameProfile (username) to the server.

Serverbound (Client → Server) · LOGIN · net/minecraft/network/login/client/C00PacketLoginStart.java

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

loginauthenticationplayer
Comprehensive 8/8

Fields

FieldTypeDescription
profileGameProfilePlayer's GameProfile containing the username (UUID is null at this stage)

Wire Encoding

FieldTypeNotes
UsernameString (max 16)The player's Minecraft username

MCP References

MCPNetHandlerLoginServer.processLoginStart()

Handler Interface

HNDINetHandlerLoginServer

Notes

Sent immediately after C00Handshake (with state=LOGIN). The GameProfile has a username but the UUID is null: the server fills it in from Mojang's auth servers and returns it in S02PacketLoginSuccess. This is the first step of the login handshake after the initial HANDSHAKING state.

Vanilla Source

C00PacketLoginStart.java51 lines · MCP 1.8.9Original ↗
1
package net.minecraft.network.login.client;
2
3
import com.mojang.authlib.GameProfile;
4
import java.io.IOException;
5
import java.util.UUID;
6
import net.minecraft.network.Packet;
7
import net.minecraft.network.PacketBuffer;
8
import net.minecraft.network.login.INetHandlerLoginServer;
9
10
public class C00PacketLoginStart implements Packet<INetHandlerLoginServer>
11
{
12
    private GameProfile profile;
13
14
    public C00PacketLoginStart()
15
    {
16
    }
17
18
    public C00PacketLoginStart(GameProfile profileIn)
19
    {
20
        this.profile = profileIn;
21
    }
22
23
    /**
24
     * Reads the raw packet data from the data stream.
25
     */
26
    public void readPacketData(PacketBuffer buf) throws IOException
27
    {
28
        this.profile = new GameProfile((UUID)null, buf.readStringFromBuffer(16));
29
    }
30
31
    /**
32
     * Writes the raw packet data to the data stream.
33
     */
34
    public void writePacketData(PacketBuffer buf) throws IOException
35
    {
36
        buf.writeString(this.profile.getName());
37
    }
38
39
    /**
40
     * Passes this Packet on to the NetHandler for processing.
41
     */
42
    public void processPacket(INetHandlerLoginServer handler)
43
    {
44
        handler.processLoginStart(this);
45
    }
46
47
    public GameProfile getProfile()
48
    {
49
        return this.profile;
50
    }
51
}

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

Deep Dive

Role in the protocol

C00PacketLoginStart is the first packet of the LOGIN state, sent immediately after C00Handshake with nextState=2. It carries a GameProfile whose username is the only meaningful field; the UUID is null at this stage and the server fills it in from the session service. The vanilla client fires it from three places: GuiConnecting on connect, Minecraft.java's direct networkmanager path, and RealmsConnect for realm joins. The server answers with S01PacketEncryptionRequest on online-mode servers or S02PacketLoginSuccess on offline-mode servers. Everything after this packet is gated on the server's decision in processLoginStart.

Vanilla handling

NetHandlerLoginServer.processLoginStart validates the currentLoginState is HELLO via Validate.validState, stores the profile, then branches on server.isServerInOnlineMode() and whether the channel is local. Online mode moves to KEY state and sends S01PacketEncryptionRequest; offline mode jumps straight to READY_TO_ACCEPT. The username arrives as a VarInt-length-prefixed UTF-8 string; the client enforces the 16-character limit at the login screen, and the packet itself does no re-validation beyond reading the string.

Why clients touch it

Three families in the corpus reference this packet. Rise 6.1.30 and 6.2.4 BlinkComponent list C00PacketLoginStart in a five-class exemption set that is returned untouched by the blink buffer. Spicy Blink, Fly and BackupFly use an identical three-way guard (C00PacketKeepAlive, C00Handshake, C00PacketLoginStart) in their EventSendPacket handlers so the handshake always flows while the module cancels everything else. LiquidSense Dev is the one client that rewrites the packet: MixinGuiConnecting overwrites the vanilla connect method and, when an MCLeaks alt session is active, sends C00PacketLoginStart with a GameProfile built from MCLeaks.getSession().getUsername() instead of the launcher profile. The 8 classic clients treat the packet as untouchable plumbing; the 1.8-era Gugustus NameSpoof pattern never reappears in this corpus.

Exploit surface

The packet is sent before encryption, so the username is visible to any MITM during login, and on offline-mode servers the name is trust-on-first-use: impersonation is a server configuration weakness, not a packet bug. The MCLeaks variant in LiquidSense Dev reuses that trust model, since the swapped username is what the server stores on offline-mode joins. Client-side abuse is otherwise limited to cancellation, which stalls the login at HELLO until the server's connection timeout fires. The only real engineering concern for module authors is accidental swallowing: a blink module that buffers C00PacketLoginStart breaks every future join, which is exactly why both Rise's component and Spicy's modules hard-code the exemption.

Server-Side Handling

NetHandlerLoginServer.processLoginStart: Validate.validState(HELLO), store loginGameProfile, then either send S01PacketEncryptionRequest and move to KEY (online mode, non-local channel) or move straight to READY_TO_ACCEPT (offline mode or local channel). No username validation beyond the wire read; the server trusts the client's login-screen limit of 16 chars.

Protocol Analysis

Sent in LOGIN state only, id 0x00. Single String field: VarInt length + UTF-8 bytes. UUID in the GameProfile is null until the server resolves it via the session service. State must be LOGIN after the C00Handshake; a C00PacketLoginStart in any other state is a protocol violation that the server's Validate check rejects.

Anti-Cheat Landscape

No anti-cheat parses this packet: it carries no position, timing, or interaction data and the player entity does not exist yet. Serverside plugins and proxies (auth plugins, BungeeCord) consume the name for pre-auth bookkeeping, but nothing in the 8 clients interacts with that. The packet is a non-surface for flagging, which is why modules only need to avoid breaking it.

implementation Implementation Cases

The login opener: username-only GameProfile sent right after the handshake. BlinkComponent (Rise 6.x) and Spicy's Blink/Fly/BackupFly exempt it from packet buffering so the handshake survives while they hold everything else; LiquidSense Dev's MixinGuiConnecting is the only corpus hit that rewrites the username, swapping in the MCLeaks alt profile when an alt session is active.

BlinkComponent (Rise 6.1.30, Rise 6.2.4)

Exempt C00PacketLoginStart (and the other four pre-play serverbound packets) from blink buffering so the login handshake always reaches the server while blink is active.

A PacketSendEvent listener at VERY_LOW priority returns without cancelling when the packet is C00Handshake, C00PacketLoginStart, C00PacketServerQuery, C01PacketPing or C01PacketEncryptionResponse. Any other packet is parked in the static queue and cancelled, unless it matches the per-module setExempt list. The queue flushes via PacketUtil.sendNoEvent when a C03PacketPlayer arrives, the player dies, or the world changes.

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

Vanilla hook: PacketSendEvent
None: the packet is returned untouched, so wire behavior is identical to vanilla. The exemption exists purely to prevent self-inflicted login stalls, not to evade anything.
Variations: Rise 6.1.30 ships the byte-identical file at com/alan/clients/component/impl/player/BlinkComponent.java; both versions use the same five-class instanceof list and the same 100ms exemption window.
Blink / Fly / BackupFly (login allowlist) (Spicy)

Keep the handshake alive while the module cancels and buffers all other serverbound packets, so blink and Hypixel-mode fly cannot kill the login sequence.

EventSendPacket pre handler returns early when the packet is C00PacketKeepAlive, C00Handshake or C00PacketLoginStart. Every other packet is added to a static ArrayList and cancelled. Blink flushes the queue through mc.getNetHandler().addToSendQueue on disable; Fly's Hypixel mode applies the same guard before rewriting C03PacketPlayer fields and parking packets in its own buffer.

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

Vanilla hook: EventSendPacket
No anti-cheat relevance: the guard only prevents the module from breaking its own connection. The interesting detail is that the exemption is identical across three modules, which suggests a shared template in Spicy's codebase.
Variations: Fly.java repeats the same three-way instanceof guard at lines 398, 818 and 1032 in its Hypixel mode, and BackupFly.java at lines 356 and 725; both additionally rewrite C03PacketPlayer on-ground/moving flags after the guard.
MCLeaks / MixinGuiConnecting (LiquidSense Dev)

Swap the login GameProfile for the MCLeaks alt session so the server records the alt username instead of the launcher account.

@Overwrite on GuiConnecting.connect reimplements the connect thread: it sends C00Handshake, then C00PacketLoginStart whose GameProfile is built from MCLeaks.getSession().getUsername() when MCLeaks.isAltActive() and from mc.getSession().getProfile() otherwise. A second @Inject at the C00PacketLoginStart NEW allocation that would do the same swap via networkManager.sendPacket sits commented out, leaving the overwrite as the live path.

Source: LiquidSense Dev, net/ccbluex/liquidbounce/injection/forge/mixins/gui/MixinGuiConnecting.java

Vanilla hook: No event hook: a Mixin @Overwrite replaces the vanilla connect method body; the send goes through the raw NetworkManager.
No anti-cheat reads the login state; the swap matters only to the server's offline-mode name storage. The packet is sent before encryption, so the alt name is visible on the wire to any MITM.
Variations: Rise 6.x and Spicy only exempt the packet from buffering; LiquidSense Dev is the single corpus client that actually rewrites the profile field, and only when an MCLeaks alt is active.
PacketSendEvent / EventSendPacket on the classic clients; Rise 6.x routes through its component system with @EventLink listeners. LiquidSense Dev hooks the send site itself via a mixin overwrite instead of the event bus.
Rise uses a central BlinkComponent with an explicit class allowlist and sendNoEvent flushing. Spicy implements the guard inline in each module's EventSendPacket handler with instanceof casts on the raw Packet. LiquidSense Dev replaces the vanilla send site entirely and conditionally picks the GameProfile at construction time.

anticheat Anti-Cheat Checks

LoginStart is invisible to server-side anticheats: the player entity, world and timing state do not exist yet, and the packet carries only the username. The two corpus hits are packet-library plumbing: FlopAC ChannelHandlerAbstract and intave TinyProtocol both declare the PACKET_LOGIN_IN_START class constant and route it through their channel handlers, and intave's handleLoginStart dispatcher serves the plugin's own cloud-control channel, not a check on the Minecraft login packet. No anticheat flags anything on it.

Wiki Cross-Reference

On offline-mode (authentication disabled) servers encryption is skipped entirely and Login Start is directly followed by Login Success.

The vanilla server derives offline-mode UUIDs as UUID version 3 of the string OfflinePlayer:, though the protocol itself accepts any UUID the server sends in Login Success.

MCP 1.8.9 C00PacketLoginStart implements Packet dispatching to INetHandlerLoginServer.processLoginStart; wire serde is readPacketData/writePacketData via readStringFromBuffer.

1.8.9 callers: Minecraft.? sends new C00PacketLoginStart (line 2339) +2 more: https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/client/Minecraft.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.