0x01 C01PacketChatMessage

Sends a chat message or command from the client to the server.

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

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

chatmessagecommand
Comprehensive 7/8

Fields

FieldTypeDescription
messageStringThe chat message or command (commands start with /)

Wire Encoding

FieldTypeNotes
MessageStringRaw text, max 100 chars

MCP References

MCPNetHandlerPlayServer.processChatMessage()

Handler Interface

HNDINetHandlerPlayServer

Vanilla Source

C01PacketChatMessage.java54 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 C01PacketChatMessage implements Packet<INetHandlerPlayServer>
9
{
10
    private String message;
11
12
    public C01PacketChatMessage()
13
    {
14
    }
15
16
    public C01PacketChatMessage(String messageIn)
17
    {
18
        if (messageIn.length() > 100)
19
        {
20
            messageIn = messageIn.substring(0, 100);
21
        }
22
23
        this.message = messageIn;
24
    }
25
26
    /**
27
     * Reads the raw packet data from the data stream.
28
     */
29
    public void readPacketData(PacketBuffer buf) throws IOException
30
    {
31
        this.message = buf.readStringFromBuffer(100);
32
    }
33
34
    /**
35
     * Writes the raw packet data to the data stream.
36
     */
37
    public void writePacketData(PacketBuffer buf) throws IOException
38
    {
39
        buf.writeString(this.message);
40
    }
41
42
    /**
43
     * Passes this Packet on to the NetHandler for processing.
44
     */
45
    public void processPacket(INetHandlerPlayServer handler)
46
    {
47
        handler.processChatMessage(this);
48
    }
49
50
    public String getMessage()
51
    {
52
        return this.message;
53
    }
54
}

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

Deep Dive

Role in the protocol

The serverbound chat packet carries one String message (max 100 chars client-side, 32767 bytes wire-side). The vanilla client sends it through EntityPlayerSP.sendChatMessage, which runs the client command parser first: any message starting with '/' is a command, otherwise a chat packet is sent. The server's processChatMessage in NetHandlerPlayServer validates length, checks mute/cooldown state, and feeds the message to the server command dispatcher or chat pipeline. For modules this is the single most-intercepted serverbound packet: it is how command systems, spammers, AutoGG, chat bypasses, and login helpers all move data to the server.

Vanilla handling

NetHandlerPlayServer.processChatMessage: rejects empty messages, trims whitespace, applies the chat cooldown (10 ticks between messages for regular players), and routes to the command handler if the message starts with '/'. The server-side chat pipeline then runs the message through filters and broadcasts. Client-side, the interesting hook is EntityPlayerSP.sendChatMessage: client commands starting with '/' never become packets, which is why clients that want dot-prefixed commands must intercept the packet itself.

Why clients touch it

Five families in the 8 clients. (1) Command systems: Memeware and Nekoware Commands.java intercept every C01, cancel it if the message starts with '.', and dispatch to client-side commands, so dot-commands never reach the server. (2) Chat bypasses: Rise 5.99/6.2.4 ChatBypass rewrites the message with invisible/combining characters to dodge filter plugins. (3) Auto-login: Rise 5.99 AutoAuthme cancels /register and /login packets and sends the stored credentials itself. (4) Auto-spam: Sigma AutoGG, Rise AutoGroomer/AutoHypixel, Memeware Spammer/DeathInsult send canned messages. (5) Client utility: ChatUtil.sendChat_NoFilter in Sigma sends C01 directly, bypassing the vanilla sendChatMessage command parsing. November Recode 2.0 dominates the new-client side of this packet: CommandExecutor cancels dot-prefixed messages and dispatches client commands, IRCChatModule redirects '#'-prefixed messages to an IRC socket, AutoPlayModule re-sends the win or loss click command, and PhaseModule explicitly exempts C01 from its cage-phase packet buffer. LiquidSense Dev has no chat module: its only C01 reference is an unused import in AntiBot.java.

Exploit surface

The chat cooldown is client-enforced on most servers; the packet itself carries no timestamp, so sending faster than the cooldown is only detectable server-side by counting packets, which is why spam modules are trivially flagged. The real depth is in rewriting: filter-bypass via Unicode combining characters (Rise's char[] table), and the fact that the server cannot tell a human-typed message from a packet-injected one. ChatBypass is also a privacy edge: it proves the client can rewrite what the user typed before it leaves the machine.

Server-Side Handling

NetHandlerPlayServer.processChatMessage: trims the message, rejects it if empty or over-length, enforces the player's chat cooldown (10 ticks), then routes to the command dispatcher when the message starts with '/'. A serverbound chat packet can never carry a client-side command, so dot-prefix command systems must intercept before the packet leaves the client.

Protocol Analysis

Single String field: VarInt length prefix + UTF-8 bytes, 32767 byte cap on the wire; the vanilla client GUI enforces 100 chars. Sent in PLAY state only. Messages are unencrypted-in-transit only before TLS; in practice the whole stream is encrypted (after C01PacketEncryptionResponse).

Anti-Cheat Landscape

Anti-cheats do not flag chat packets themselves; anti-spam and filter plugins do, and they operate purely on content and rate. The detectable surface is the rate: spam modules sending 20+ messages/second trip cooldown and mute systems instantly. Unicode-bypass text is caught by plugin-side normalization (strip combining marks, then compare). The client command hijack (cancelling C01 for dot-commands) is invisible to the server because the packet never exists.

implementation Implementation Cases

The most-intercepted serverbound packet in the 8 clients. Command systems cancel it for dot-prefixed client commands, chat bypasses rewrite the payload with Unicode tricks, AutoAuthme hijacks /login and /register, and a fleet of AutoGG/Spammer/Groomer modules inject canned messages. Everything funnels through one String field and one event.

Commands (client command system) (Memeware 7.3, Nekoware v1 private)

Intercept chat packets so dot-prefixed messages dispatch to client commands instead of the server.

A PacketOutEvent handler checks every C01: if the message starts with the prefix ('.'), cancel the packet and run the local command dispatcher. Memeware's implementation splits the message on whitespace, strips the prefix, lowercases the first token, and switches over command names (bind, etc.). The 'say' flag lets the user force a message through to the server when needed.

Source: Memeware 7.3, me/memewaredevs/client/module/misc/Commands.java

Vanilla hook: PacketOutEvent.
Invisible to the server: the cancelled packet never exists. The only visible effect is that dot-messages never appear in chat, which looks like a client chat filter to observers.
Variations: Nekoware v1 private ships the same pattern in its own Commands.java; both clients also expose ChatUtil.printChat for local feedback.
ChatBypass (Rise 5.99, Rise 6.2.4)

Rewrite outgoing non-command messages so server filter plugins cannot match banned words.

On PacketSendEvent, if the packet is C01 and the message does not start with '/', rebuild the string: for every character append the character plus a random invisible Unicode character (from a ~500-entry table of combining/zero-width chars), repeated three times. The Hypixel mode uses a fixed combining char 'ˌ'. The rewritten packet replaces the original via event.setPacket.

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

Vanilla hook: PacketSendEvent; mutates the packet and re-sets it on the event.
Filter plugins that strip combining characters before matching defeat the Normal mode; the Hypixel mode survives because the server-side chat renderer collapses the combining char visually. No anti-cheat flags this as movement/combat abuse.
Variations: Rise 6.2.4 ships the same module in its module/impl/other tree; Rise 6.1.30 does not reference C01PacketChatMessage in ChatBypass form.
AutoAuthme (Rise 5.99)

Automate /register and /login on auth-me servers using stored credentials.

On PacketSendEvent, if not yet logged in and the outgoing message is exactly /register or /login, cancel the packet and fire the stored credentials via the module's own send path. Credentials come from a per-server login file loaded at startup.

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

Vanilla hook: PacketSendEvent; state tracked via WorldChangedEvent.
Sending credentials faster than a human can type is the only tell; most auth-me servers do not rate-limit login packets. The cancelled /register and /login packets never reach the server, so the server never sees the double-login attempt.
Variations: Rise 6.x keeps the feature in other forms (AutoGroomer, AutoHypixel reference C01 in 6.1.30/6.2.4).
AutoGG / AutoGroomer / Spammer (Sigma 4.11, Rise 5.99, Rise 6.1.30, Rise 6.2.4, Memeware 7.3)

Inject canned messages after events (game end, kill) or on a timer.

Sigma AutoGG listens for death/win indicators (S02PacketChat patterns) and calls ChatUtil.sendChat("gg"). Sigma's ChatUtil has two paths: sendChat goes through vanilla sendChatMessage (client command parsing applies), while sendChat_NoFilter pushes a C01PacketChatMessage straight into the send queue, bypassing the client command parser. Rise's AutoGroomer and AutoHypixel send their own scripted message sequences on world join.

Source: Sigma 4.11, info/sigmaclient/module/impl/minigames/AutoGG.java

Vanilla hook: PacketSendEvent on other modules; ChatUtil call from AutoGG's chat receive handler.
No anti-cheat flags 'gg'. The interesting engineering detail is sendChat vs sendChat_NoFilter: going through sendChatMessage means a message starting with '.' would be eaten by the client command system, so auto-message modules use the NoFilter path to guarantee delivery.
Variations: Rise 5.99/6.x AutoGroomer and AutoHypixel; Memeware 7.3 Spammer and DeathInsult; Sigma Sigmeme command injects a random meme phrase via a raw C01.
CommandExecutor (dot-command dispatch) (November Recode 2.0)

Intercept every C01 and dispatch dot-prefixed messages to the client command registry, so client commands never reach the server.

The EventPacket.Out listener checks each C01; messages not starting with '.' pass through untouched. Dot messages are cancelled, trimmed, split on whitespace, and the first token is looked up in the CommandRegistry; dispatch runs with the remaining args, and syntax and argument exceptions are printed to chat. A command not found prints an error instead of sending the message.

Source: November Recode 2.0, feature/command/exec/CommandExecutor.java

Vanilla hook: EventPacket.Out.
Invisible to the server: the cancelled packet never exists on the wire. The registry-based dispatch with exception reporting plays the same role as Memeware's Commands switch, but organized as a standalone executor class subscribed to the bus.
Variations: November also ships IRCChatModule and AutoPlayModule on the same C01 surface; the eight classic clients implement command dispatch as a module, November as a separate executor.
IRCChatModule (IRC bridge) (November Recode 2.0)

Redirect messages starting with '#' out of the game chat and into November's private IRC socket.

The EventPacket.Out handler matches C01, and when the message starts with '#', cancels the packet and sends the substring after the prefix through November.socket().sendIrcChat. The enable message tells the user the prefix. Messages without the prefix pass through untouched.

Source: November Recode 2.0, feature/module/impl/player/IRCChatModule.java

Vanilla hook: EventPacket.Out.
Cancelling before the wire means the IRC traffic is invisible to the server; the module is a chat utility, not an exploit, and carries no anti-cheat surface.
Variations: No other client in the corpus bridges chat packets to an external IRC socket; Sigma's Sigmeme command is the closest (injects a random meme as a raw C01).
AutoPlayModule (auto /play) (November Recode 2.0)

Automatically send the next-game command after a loss or win by replaying the chat click-event command as a C01.

The EventPacket.In handler scans S02 chat for the 'You won! Want to play again?' or 'You died!' line, walks the chat component siblings for a RUN_COMMAND click event, and stores its value. On EventUpdate, once the delay elapses, the stored command is queued as a fresh C01 via addToSendQueueSilent. BLOCKS_MC mode instead finds a paper item in the hotbar and sends C09 held-item change plus C08 placement.

Source: November Recode 2.0, feature/module/impl/player/AutoPlayModule.java

Vanilla hook: EventPacket.In (S02 scan), EventUpdate (send timer).
The replayed command arrives after a human-like delay; sending it silently bypasses the client command parser so a '/play ...' value is never eaten client-side. No anti-cheat surface.
Variations: This is the auto-command family that Sigma's AutoGG and Rise's AutoHypixel cover in the classic clients; November's version extracts the exact RUN_COMMAND value from the chat component tree.
PhaseModule (cage phase buffer) (November Recode 2.0)

While phasing through the glass cage, buffer every outgoing packet except C01 chat, so the chat stream stays live during the phase.

CAGE_PHASE mode removes the glass block client-side when the player stands on BlockGlass with 20 or more ticks since the last S08 setback, then the EventPacket.Out handler cancels and queues every packet while cagePhasing is true, with an explicit early return for C01PacketChatMessage so chat always passes. On disable the queue is drained via addToSendQueueSilent and the glass block is restored from the saved state.

Source: November Recode 2.0, feature/module/impl/exploit/PhaseModule.java

Vanilla hook: EventPacket.Out (buffer with C01 exemption), EventPacket.In (S08 setback counter, S02 cage messages), EventUpdate (state machine).
The C01 exemption is the corpus hit: chat is deliberately not buffered because a missing chat stream during the phase would look dead to the server; everything else is held and replayed in order.
Variations: November's phase buffers the whole stream and restores the block client-side; the classic clients' Phase modules use teleport or collision edits instead.
PacketSendEvent is universal. The vanilla send path is EntityPlayerSP.sendChatMessage; modules that want to bypass client-side command parsing construct C01 directly.
Memeware/Nekoware mutate or cancel the packet inside the event. Rise 5.99/6.x call event.setPacket to swap in a rewritten packet. Sigma routes through ChatUtil helpers so the rest of the client never touches packet construction. November Recode 2.0 intercepts C01 on EventPacket.Out across CommandExecutor, IRCChatModule, AutoPlayModule and PhaseModule, and queues generated chat via addToSendQueueSilent; LuaEventPacket maps C01 to id 0x01. LiquidSense Dev's only C01 reference is an unused import in AntiBot.java, whose addChatMessage calls are client-side chat text, so it contributes no chat packet module.

anticheat Anti-Cheat Checks

The chat message packet carries every chat line and command the player types, which makes it the input surface for chat spam, captcha systems and text-based exploit attempts. Server-side anticheats split into two families: event-based chat systems that hook the Bukkit chat pipeline, and raw packet checks that validate the message bytes before the server processes them. The packet also carries the commands that log4j and similar exploits are delivered through, so payload scanning of chat is a standard mitigation.

ChatB (Grim) (GrimAnticheat-Grim)

Rejects chat messages and commands that the vanilla server would never accept, closing the spigot antispam bypass.

PreViaPacketReceiveListener that decodes CHAT_MESSAGE, CHAT_COMMAND and CHAT_COMMAND_UNSIGNED. A chat message is invalid if it is empty, has leading or trailing whitespace, or starts with / on 1.19+ where commands have their own packet. Commands are invalid if they carry trailing or surrounding whitespace. On flag it cancels the packet and calls onPacketCancel so downstream state stays consistent. The comment notes click-event edge cases can false flag on badly configured servers.

Detects: Empty or whitespace-padded chat messages, spigot antispam bypasses that smuggle text via formatting, and malformed command packets.

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

Variations: BetterAnticheat ImpossibleMessageCheck flags empty and space-prefixed messages, Photon ImpossibleChat flags chat while sprinting or in an inventory, and Kauri Log4J scans the message for JNDI syntax.
ChatListener (NoCheatPlus) (Updated-NoCheatPlus-NoCheatPlus)

The classic chat pipeline: captcha, text spam, command spam, relog and login-rate checks dispatched from the Bukkit chat events.

CheckListener that wires the Captcha, Commands, Logins, Text and Relog checks and registers ChatConfig and ChatData. AsyncPlayerChatEvent at LOWEST priority runs the Text check and cancels spam; PlayerCommandPreprocessEvent at LOWEST runs the command checks with left-trimmed messages and command alias resolution; PlayerLoginEvent runs captcha reset, fast relog and login-rate checks. It also records teleport-like commands for the net checks and maintains prefix trees for ignored and chat-handled commands.

Detects: Chat spam, command spam, captcha evasion, fast re-logging and login flooding.

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

Variations: Photon ImpossibleChat runs on AsyncPlayerChatEvent too, Grim and BetterAnticheat validate the raw packet instead, and Kauri filters JNDI patterns from the chat stream.
ImpossibleMessageCheck (BetterAnticheat) (amnoah-BetterAnticheat)

Flags chat messages that cannot exist: fully empty or space-only strings and messages starting with a space.

handleReceivePlayPacket reads WrapperPlayClientChatMessage and checks the raw string: a trim that is empty fails with the code emp, a leading space fails with the code spc. Failures are recorded through the check base with the short codes as data.

Detects: Empty chat packets and space-prefixed messages used to bypass spam filters.

Source: amnoah-BetterAnticheat, core/src/main/java/better/anticheat/core/check/impl/chat/ImpossibleMessageCheck.java

Variations: Grim ChatB also requires the message to be trim-equal and rejects / prefixes on modern versions; Photon ImpossibleChat covers the behavioral side instead.
Log4J (Kauri) (funkemunky-KauriV3)

Scans chat messages for the JNDI lookup syntax used by the log4j exploit and cancels the packet.

WCancellable bound to WrapperPlayClientChatMessage. It compiles the pattern \$\{.*} and, if the whole message matches, flags 'Tried to use JNDI exploit' and returns true to cancel; otherwise it debug-logs the message and lets it through.

Detects: Log4Shell payloads delivered through chat.

Source: funkemunky-KauriV3, Anticheat/src/main/java/dev/brighten/ac/check/impl/chat/Log4J.java

Variations: Intave filters the same syntax in its CommandFilter and Log4JExploitFilter modules; Grim and BetterAnticheat validate chat shape rather than content.
ImpossibleChat (Photon) (Photon-GitHub-AntiCheatAddition)

Flags chat sent while the player is in a state where the client physically cannot be chatting: sprinting, sneaking, blocking, dead, or inside a long-open inventory.

EventListener on AsyncPlayerChatEvent. If the user is sprinting, sneaking, blocking, dead, or has had an inventory open for over a second, it flags with +25 VL and cancels the event at the configured cancel VL (default 75). Violation management decays 25 VL every 600 ms.

Detects: Chat modules that send messages while the client is in an impossible state, and inventory-based chat bypasses.

Source: Photon-GitHub-AntiCheatAddition, src/main/java/de/photon/anticheataddition/modules/checks/impossiblechat/ImpossibleChat.java

Variations: Grim ChatC flags moving while chatting from the raw packet stream; NoCheatPlus runs its Text and Captcha checks on the same event.

Wiki Cross-Reference

The server rebroadcasts an accepted chat message to all players that have chat enabled, including the player that sent it.

MCP 1.8.9 C01PacketChatMessage implements Packet dispatching to INetHandlerPlayServer.processChatMessage; wire serde is readPacketData/writePacketData via readStringFromBuffer.

1.8.9 callers: EntityPlayerSP.sendChatMessage sends new C01PacketChatMessage (line 298): https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/client/entity/EntityPlayerSP.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.