0x01 C01PacketChatMessage
Sends a chat message or command from the client to the server.
Published 2026-06-18 · Updated 2026-10-14
Fields
| Field | Type | Description |
|---|---|---|
| message | String | The chat message or command (commands start with /) |
Wire Encoding
| Field | Type | Notes |
|---|---|---|
| Message | String | Raw text, max 100 chars |
MCP References
NetHandlerPlayServer.processChatMessage()Handler Interface
INetHandlerPlayServerVanilla 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 | |
| 51 | |
| 52 | |
| 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.
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.
// ===== FILE: Memeware 7.3, me/memewaredevs/client/module/misc/Commands.java =====
package me.memewaredevs.client.module.misc;
import me.hippo.api.lwjeb.annotation.Handler;
import me.memewaredevs.client.Memeware;
import me.memewaredevs.client.event.events.PacketOutEvent;
import me.memewaredevs.client.module.Module;
import me.memewaredevs.client.util.ChatUtil;
import net.minecraft.network.Packet;
import net.minecraft.network.play.client.C01PacketChatMessage;
import org.lwjgl.input.Keyboard;
import java.awt.*;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.StringSelection;
import java.util.Arrays;
import java.util.function.Consumer;
public class Commands extends Module {
private boolean say = false;
public static String clientName = "Memeware";
public static String editionName = "Value Patch Edition";
private String prefix = ".";
public Commands() {
super("Commands", 0, Module.Category.MISC);
}
@Handler
public Consumer<PacketOutEvent> eventConsumer0 = (event) -> {
Packet p = event.getPacket();
if (p instanceof C01PacketChatMessage) {
C01PacketChatMessage packet = (C01PacketChatMessage) p;
String msg = packet.getMessage();
String[] args = msg.split(" +");
String cmd = args[0].replace(this.prefix, "").toLowerCase();
if (!say) {
if (msg.startsWith(this.prefix)) {
event.cancel();
switch (cmd) {
case "bind": {
if (args[2] != null) {
Module m = Memeware.INSTANCE.getModuleManager().getModule(args[1]);
if (m != null) {
int key = Keyboard.getKeyIndex(args[2].toUpperCase());
if (key != -1) {
m.setKeyBind(key);
ChatUtil.printChat("Successfully set bind to "
+ Keyboard.getKeyName(key) + ".");
} else {
ChatUtil.printChat("Invalid command usage! Correct usage: .bind [module] [key]");
}
} else {
ChatUtil.printChat("Invalid command usage! Correct usage: .bind [module] [key]");
}
} else {
ChatUtil.printChat("Invalid command usage! Correct usage: .bind [module] [key]");
}
break;
}
case "help": {
String[] cmds = new String[] {".help", ".prefix [key]", ".bind [module] [key]", ".vclip [amount]", ".hclip [amount]", ".name", ".say [message]", ".t [module]", ".toggle [module]", ".clientname [name]", ".clientedition [edition]"};
for (String s : cmds) {
ChatUtil.printChat(s);
}
break;
}
case "vclip": {
if (args[1] != null) {
try {
mc.thePlayer.setPositionAndUpdate(mc.thePlayer.posX, mc.thePlayer.posY + Double.parseDouble(args[1]), mc.thePlayer.posZ);
ChatUtil.printChat("VClip'd " + Double.parseDouble(args[1]) + " blocks.");
} catch (Exception e) {
ChatUtil.printChat("Invalid command usage! Correct usage: .vclip [amount]");
e.printStackTrace();
}
} else {
ChatUtil.printChat("Invalid command usage! Correct usage: .vclip [amount]");
}
break;
}
case "hclip": {
if (args[1] != null) {
try {
double yaw = Math.toRadians(mc.thePlayer.rotationYaw);
double distance = Double.parseDouble(args[1]);
mc.thePlayer.setPosition(mc.thePlayer.posX + -Math.sin(yaw) * distance, mc.thePlayer.posY, mc.thePlayer.posZ + Math.cos(yaw) * distance);
ChatUtil.printChat("HClip'd " + Double.parseDouble(args[1]) + " blocks.");
} catch (Exception e) {
ChatUtil.printChat("Invalid command usage! Correct usage: .hclip [amount]");
e.printStackTrace();
}
} else {
ChatUtil.printChat("Invalid command usage! Correct usage: .hclip [amount]");
}
break;
}
case "name": {
String name = mc.thePlayer.getName();
StringSelection stringSelection = new StringSelection(name);
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
clipboard.setContents(stringSelection, null);
ChatUtil.printChat("Copied your username to the clipboard!");
break;
}
case "say": {
if (args[1] != null) {
try {
String[] bruh = Arrays.copyOfRange(args, 1, args.length);
String msg1 = String.join(" ", bruh);
mc.thePlayer.sendChatMessage("\uF705" + msg1);
ChatUtil.printChat("Said your chat message!");
} catch (Exception e) {
ChatUtil.printChat("Invalid command usage! Correct usage: .say [message]");
e.printStackTrace();
}
} else {
ChatUtil.printChat("Invalid command usage! Correct usage: .say [message]");
}
break;
}
case "t": {
if (args[1] != null) {
try {
String[] bruh = Arrays.copyOfRange(args, 1, args.length);
String module = String.join(" ", bruh);
Memeware.INSTANCE.getModuleManager().getModule(module).toggle();
ChatUtil.printChat("Toggled " + module.toUpperCase() + ".");
} catch (Exception e) {
ChatUtil.printChat("Invalid command usage! Correct usage: .t [module]");
e.printStackTrace();
}
} else {
ChatUtil.printChat("Invalid command usage! Correct usage: .t [module]");
}
break;
}
case "toggle": {
if (args[1] != null) {
try {
String[] bruh = Arrays.copyOfRange(args, 1, args.length);
String module = String.join(" ", bruh);
Memeware.INSTANCE.getModuleManager().getModule(module).toggle();
ChatUtil.printChat("Toggled " + module.toUpperCase() + ".");
} catch (Exception e) {
ChatUtil.printChat("Invalid command usage! Correct usage: .toggle [module]");
e.printStackTrace();
}
} else {
ChatUtil.printChat("Invalid command usage! Correct usage: .toggle [module]");
}
break;
}
case "clientname": {
if (args[1] != null) {
try {
String[] bruh = Arrays.copyOfRange(args, 1, args.length);
String aeiofhneaon = String.join(" ", bruh);
this.clientName = aeiofhneaon;
ChatUtil.printChat("Client name set to " + aeiofhneaon + ".");
} catch (Exception e) {
ChatUtil.printChat("Invalid command usage! Correct usage: .clientname [name]");
e.printStackTrace();
}
} else {
ChatUtil.printChat("Invalid command usage! Correct usage: .clientname [name]");
}
break;
}
case "clientedition": {
if (args[1] != null) {
try {
String[] bruh = Arrays.copyOfRange(args, 1, args.length);
String aeiofhneaon = String.join(" ", bruh);
this.editionName = aeiofhneaon;
ChatUtil.printChat("Client Edition set to " + aeiofhneaon + ".");
} catch (Exception e) {
ChatUtil.printChat("Invalid command usage! Correct usage: .clientedition [edition]");
e.printStackTrace();
}
} else {
ChatUtil.printChat("Invalid command usage! Correct usage: .clientedition [edition]");
}
break;
}
case "prefix": {
if (args[1] != null) {
try {
String[] bruh = Arrays.copyOfRange(args, 1, args.length);
String aeiofhneaon = String.join(" ", bruh);
this.prefix = aeiofhneaon;
ChatUtil.printChat("Prefix set to " + aeiofhneaon);
} catch (Exception e) {
ChatUtil.printChat("Invalid command usage! Correct usage: .prefix [key]");
e.printStackTrace();
}
} else {
ChatUtil.printChat("Invalid command usage! Correct usage: .prefix [key]");
}
break;
}
}
}
}
}
};
}
// NOTE (AI): eventConsumer0 intercepts every outgoing chat packet; messages starting
// with the '.' prefix are cancelled and dispatched to client-side commands
// (bind, toggle, etc.). The 'say' flag forces a raw message through.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.
// ===== FILE: Rise 5.99, dev/rise/module/impl/other/ChatBypass.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.event.impl.packet.PacketSendEvent;
import dev.rise.module.Module;
import dev.rise.module.api.ModuleInfo;
import dev.rise.module.enums.Category;
import dev.rise.setting.impl.ModeSetting;
import net.minecraft.network.play.client.C01PacketChatMessage;
@ModuleInfo(name = "ChatBypass", description = "Bypasses chat filters", category = Category.OTHER)
public final class ChatBypass extends Module {
private final ModeSetting mode = new ModeSetting("Mode", this, "Normal", "Normal", "Hypixel");
private final char[] chars = new char[]{
'', '', 'Ϳ', '', '', '', '', '', '', '', 'Ԥ', 'ԥ', 'Ԧ', 'ԧ', 'Ԩ', 'ԩ', 'Ԫ', 'ԫ', 'Ԭ', 'ԭ', 'Ԯ', 'ԯ', '', '', '', 'ՠ', 'ֈ', '', '', '֍', '֎', '֏', '', '', '', '', '', '', '', '', '', '', '', '', '', 'ׯ', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '؝', 'ؠ', 'ٟ', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '߽', '߾', '߿', 'ࠀ', 'ࠁ', 'ࠂ', 'ࠃ', 'ࠄ', 'ࠅ', 'ࠆ', 'ࠇ', 'ࠈ', 'ࠉ', 'ࠊ', 'ࠋ', 'ࠌ', 'ࠍ', 'ࠎ', 'ࠏ', 'ࠐ', 'ࠑ', 'ࠒ', 'ࠓ', 'ࠔ', 'ࠕ', 'ࠖ', 'ࠗ', '࠘', '࠙', 'ࠚ', 'ࠛ', 'ࠜ', 'ࠝ', 'ࠞ', 'ࠟ', 'ࠠ', 'ࠡ', 'ࠢ', 'ࠣ', 'ࠤ', 'ࠥ', 'ࠦ', 'ࠧ', 'ࠨ', 'ࠩ', 'ࠪ', 'ࠫ', 'ࠬ', '࠭', '', '', '࠰', '࠱', '࠲', '࠳', '࠴', '࠵', '࠶', '࠷', '࠸', '࠹', '࠺', '࠻', '࠼', '࠽', '࠾', '', 'ࡀ', 'ࡁ', 'ࡂ', 'ࡃ', 'ࡄ', 'ࡅ', 'ࡆ', 'ࡇ', 'ࡈ', 'ࡉ', 'ࡊ', 'ࡋ', 'ࡌ', 'ࡍ', 'ࡎ', 'ࡏ', 'ࡐ', 'ࡑ', 'ࡒ', 'ࡓ', 'ࡔ', 'ࡕ', 'ࡖ', 'ࡗ', 'ࡘ', '࡙', '࡚', '࡛', '', '', '࡞', '', 'ࡠ', 'ࡡ', 'ࡢ', 'ࡣ', 'ࡤ', 'ࡥ', 'ࡦ', 'ࡧ', 'ࡨ', 'ࡩ', 'ࡪ', '', '', '', '', '', 'ࡰ', 'ࡱ', 'ࡲ', 'ࡳ', 'ࡴ', 'ࡵ', 'ࡶ', 'ࡷ', 'ࡸ', 'ࡹ', 'ࡺ', 'ࡻ', 'ࡼ', 'ࡽ', 'ࡾ', 'ࡿ', 'ࢀ', 'ࢁ', 'ࢂ', 'ࢃ', 'ࢄ', 'ࢅ', 'ࢆ', 'ࢇ', '࢈', 'ࢉ', 'ࢊ', 'ࢋ', 'ࢌ', 'ࢍ', 'ࢎ', '', '', '', '', '', '', '', '', '', '࢘', '࢙', '࢚', '࢛', '࢜', '࢝', '࢞', '࢟', 'ࢠ', 'ࢡ', 'ࢢ', 'ࢣ', 'ࢤ', 'ࢥ', 'ࢦ', 'ࢧ', 'ࢨ', 'ࢩ', 'ࢪ', 'ࢫ', 'ࢬ', 'ࢭ', 'ࢮ', 'ࢯ', 'ࢰ', 'ࢱ', 'ࢲ', 'ࢳ', 'ࢴ', 'ࢵ', 'ࢶ', 'ࢷ', 'ࢸ', 'ࢹ', 'ࢺ', 'ࢻ', 'ࢼ', 'ࢽ', 'ࢾ', 'ࢿ', 'ࣀ', 'ࣁ', 'ࣂ', 'ࣃ', 'ࣄ', 'ࣅ', 'ࣆ', 'ࣇ', 'ࣈ', 'ࣉ', '࣊', '࣋', '࣌', '࣍', '࣎', '࣏', '࣐', '࣑', '࣒', '࣓', 'ࣔ', 'ࣕ', 'ࣖ', 'ࣗ', 'ࣘ', 'ࣙ', 'ࣚ', 'ࣛ', 'ࣜ', 'ࣝ', 'ࣞ', 'ࣟ', '࣠', '࣡', '', 'ࣣ', 'ࣤ', 'ࣥ', 'ࣦ', 'ࣧ', 'ࣨ', 'ࣩ', '࣪', '࣫', '࣬', '࣭', '࣮', '࣯', 'ࣰ', 'ࣱ', 'ࣲ', 'ࣳ', 'ࣴ', 'ࣵ', 'ࣶ', 'ࣷ', 'ࣸ', 'ࣹ', 'ࣺ', 'ࣻ', 'ࣼ', 'ࣽ', 'ࣾ', 'ࣿ', 'ऀ', 'ऺ', 'ऻ', 'ॎ', 'ॏ', 'ॕ', 'ॖ', 'ॗ', 'ॳ', 'ॴ', 'ॵ', 'ॶ', 'ॷ', 'ॸ', 'ॹ', 'ॺ', 'ঀ', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '৻', 'ৼ', '৽', '৾', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''
};
@Override
public void onPacketSend(final PacketSendEvent event) {
if (event.getPacket() instanceof C01PacketChatMessage) {
final C01PacketChatMessage packet = ((C01PacketChatMessage) event.getPacket());
final String message = packet.getMessage();
if (!message.startsWith("/")) {
final StringBuilder bypass = new StringBuilder(message.length() * 2);
for (int i = 0; i < message.length(); i++) {
final char character = message.charAt(i);
char randomChar = chars[randomInt(0, chars.length)];
if (mode.is("Hypixel"))
randomChar = 'ˌ';
bypass.append(character).append(randomChar);
bypass.append(character).append(randomChar);
bypass.append(character).append(randomChar);
}
packet.setMessage(bypass.toString());
event.setPacket(packet);
}
}
}
}
// NOTE (AI): Full ChatBypass source. onPacketSend rebuilds non-command messages by
// tripling every character and interleaving a random invisible Unicode
// char (or the fixed combining char 0x02CC for Hypixel mode). The rewritten
// packet replaces the original via event.setPacket.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.
// ===== FILE: Rise 5.99, dev/rise/module/impl/other/AutoAuthme.java =====
package dev.rise.module.impl.other;
import dev.rise.Rise;
import dev.rise.event.impl.other.OpenGUIEvent;
import dev.rise.event.impl.other.WorldChangedEvent;
import dev.rise.event.impl.packet.PacketReceiveEvent;
import dev.rise.event.impl.packet.PacketSendEvent;
import dev.rise.module.Module;
import dev.rise.module.api.ModuleInfo;
import dev.rise.module.enums.Category;
import dev.rise.util.math.RandomUtil;
import dev.rise.util.misc.FileUtil;
import lombok.Data;
import net.minecraft.client.gui.GuiDisconnected;
import net.minecraft.client.gui.GuiMainMenu;
import net.minecraft.client.gui.GuiMultiplayer;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.multiplayer.GuiConnecting;
import net.minecraft.network.play.client.C01PacketChatMessage;
import net.minecraft.network.play.server.S02PacketChat;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
@ModuleInfo(name = "AutoAuthme", description = "Automatically authenticates you when the server is using the Authme plugin", category = Category.OTHER)
public class AutoAuthme extends Module {
private static final ScheduledExecutorService SCHEDULED_EXECUTOR = Executors.newScheduledThreadPool(1);
private static final List<AutoAuthmeLogin> logins = new ArrayList<>();
private boolean loggedIn, loggingIn;
public static void loadLogins() {
final String loginContent = FileUtil.loadFile("authmelogins.txt");
if (loginContent == null) return;
for (final String loginLine : loginContent.split("\r\n")) {
final String[] loginData = loginLine.split(":");
if (loginLine.length() < 3) continue;
logins.add(new AutoAuthmeLogin(loginData[0], loginData[1], loginData[2]));
}
}
public static void saveLogins() {
final StringBuilder loginContent = new StringBuilder();
for (final AutoAuthmeLogin login : logins) {
loginContent.append("\r\n").append(login.getServerIp()).append(":").append(login.getUsername()).append(":").append(login.getPassword());
}
FileUtil.saveFile("authmelogins.txt", true, loginContent.toString());
}
@Override
public void onWorldChanged(final WorldChangedEvent event) {
loggedIn = loggingIn = false;
}
@Override
public void onPacketSend(final PacketSendEvent event) {
if (!loggedIn && !loggingIn) {
if (event.getPacket() instanceof C01PacketChatMessage) {
final C01PacketChatMessage packet = (C01PacketChatMessage) event.getPacket();
final String message = packet.getMessage();
if (message.equalsIgnoreCase("/register")) {
register();
event.setCancelled(true);
} else if (message.equalsIgnoreCase("/login")) {
login();
event.setCancelled(true);
}
}
}
}
@Override
public void onPacketReceive(final PacketReceiveEvent event) {
if (!loggedIn && !loggingIn) {
if (event.getPacket() instanceof S02PacketChat) {
final S02PacketChat packet = (S02PacketChat) event.getPacket();
// Get the message with color and formatting codes removed
final String message = packet.getChatComponent().getUnformattedText();
if (message.toLowerCase().contains("/register")) {
register();
} else if (message.toLowerCase().contains("/login")) {
login();
}
}
}
}
@Override
public void onOpenGUI(final OpenGUIEvent event) {
final GuiScreen gui = event.getNewScreen();
if (mc.getCurrentServerData() == null || gui == null
|| gui instanceof GuiConnecting || gui instanceof GuiMultiplayer
|| gui instanceof GuiDisconnected || gui instanceof GuiMainMenu) {
loggedIn = loggingIn = false;
}
}
private void register() {
loggingIn = true;
final String serverIp = mc.getCurrentServerData().serverIP;
final String username = mc.thePlayer.getName();
final String password = RandomUtil.randomStringOfSize(8, RandomUtil.QWERTY_CHARSET);
Rise.addChatMessage(
"AutoAuthme is automatically registering and logging in for you! Hover for login info!",
"Server IP: " + serverIp + "\nUsername: " + username + "\nPassword: " + password
);
mc.thePlayer.sendChatMessage("/register " + password + " " + password);
SCHEDULED_EXECUTOR.schedule(() -> {
mc.thePlayer.sendChatMessage("/login " + password);
loggedIn = true;
}, 1L, TimeUnit.SECONDS);
logins.add(new AutoAuthmeLogin(serverIp, username, password));
}
private void login() {
loggingIn = true;
final String serverIp = mc.getCurrentServerData().serverIP;
final String username = mc.thePlayer.getName();
for (final AutoAuthmeLogin login : logins) {
if (login.getServerIp().equalsIgnoreCase(serverIp) && login.getUsername().equalsIgnoreCase(username)) {
final String password = login.getPassword();
mc.thePlayer.sendChatMessage("/login " + password);
Rise.addChatMessage(
"AutoAuthme is automatically logging you in! Hover for login info!",
"Server IP: " + serverIp + "\nUsername: " + username + "\nPassword: " + password
);
loggedIn = true;
return;
}
}
}
}
@Data
class AutoAuthmeLogin {
private final String serverIp, username, password;
}
// NOTE (AI): onPacketSend cancels /register and /login packets and fires the stored
// credentials itself; login state resets on WorldChangedEvent.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.
// ===== FILE: Sigma 4.11, info/sigmaclient/module/impl/minigames/AutoGG.java =====
package info.sigmaclient.module.impl.minigames;
import java.util.ArrayList;
import java.util.ConcurrentModificationException;
import info.sigmaclient.event.Event;
import info.sigmaclient.event.RegisterEvent;
import info.sigmaclient.event.impl.EventPacket;
import info.sigmaclient.event.impl.EventTick;
import info.sigmaclient.event.impl.EventUpdate;
import info.sigmaclient.management.command.Command;
import info.sigmaclient.management.command.impl.Sigmeme;
import info.sigmaclient.module.Module;
import info.sigmaclient.module.data.ModuleData;
import info.sigmaclient.module.data.Options;
import info.sigmaclient.module.data.Setting;
import info.sigmaclient.module.impl.combat.AntiBot;
import info.sigmaclient.util.Timer;
import info.sigmaclient.util.misc.ChatUtil;
import net.minecraft.client.gui.GuiIngameMenu;
import net.minecraft.client.gui.inventory.GuiInventory;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.network.play.client.C01PacketChatMessage;
import net.minecraft.network.play.server.S02PacketChat;
import org.lwjgl.input.Keyboard;
import com.ibm.icu.util.StringTrieBuilder.Option;
public class AutoGG extends Module {
public static int multiSwap;
public static boolean isSwapping;
public static boolean settingKey;
public static boolean keysSet;
private static String MODE = "MODE";
private static String AUTOLMODE = "AUTOLMODE";
private static String L = "L";
String lastMeme = "";
String lastMeme2 = "";
String lastMeme3 = "";
ArrayList<String>memeQueue = new ArrayList<>();
public int multiKey;
public int single;
Timer timer = new Timer();
boolean mineplexL = false;
public AutoGG(ModuleData data) {
super(data);
settings.put(MODE, new Setting<>(MODE, new Options("Mode", "Hypixel", new String[]{"Hypixel", "Mineplex", "Cubecraft"}), "AutoGG server."));
settings.put(AUTOLMODE, new Setting<>(AUTOLMODE, new Options("AutoL", "Basic", new String[]{"Basic", "Sigmeme", "Penshen"}), "AutoL method."));
settings.put(L, new Setting<>(L, false, "AutoL."));
}
@Override
public void onEnable() {
isSwapping = false;
}
@Override
@RegisterEvent(events = {EventPacket.class, EventTick.class})
public void onEvent(Event event) {
String currentmode = ((Options) settings.get(MODE).getValue()).getSelected();
String lmode = ((Options) settings.get(AUTOLMODE).getValue()).getSelected();
if(event instanceof EventTick){
if(!memeQueue.isEmpty()){
try{
if(mc.thePlayer.ticksExisted <= 3){
memeQueue.clear();
}
long timerV = 3200;
if(!currentmode.equalsIgnoreCase("Hypixel"))
timerV = 0;
if(timer.delay(timerV) && !memeQueue.isEmpty()){
timer.reset();
String send = memeQueue.get(0);
ChatUtil.sendChat(send);
memeQueue.remove(0);
}
}catch(ConcurrentModificationException e){
}
}
if(!(mc.currentScreen instanceof GuiIngameMenu) && !(mc.currentScreen instanceof GuiInventory) && mc.currentScreen !=null){
if(mineplexL){
mineplexL = false;
}
}
if(mc.theWorld == null){
mineplexL = false;
}
if(timer.delay(5000) && mineplexL){
mineplexL = false;
ChatUtil.sendChat("gg");
}
}
if(event instanceof EventPacket){
EventPacket ep = (EventPacket) event;
if(ep.isIncoming() && ep.getPacket() instanceof S02PacketChat){
S02PacketChat packet = (S02PacketChat)ep.getPacket();
String message = packet.func_148915_c().getUnformattedText();
if(currentmode.equalsIgnoreCase("Hypixel")){
if((Boolean)settings.get(L).getValue()){
String[] strs = message.split(" ");
if(message.toLowerCase().contains("was killed by " + mc.thePlayer.getName().toLowerCase() + ".") ||
message.toLowerCase().contains("was thrown into the void by " + mc.thePlayer.getName().toLowerCase() + ".")||
message.toLowerCase().contains("was thrown off a cliff by " + mc.thePlayer.getName().toLowerCase() + ".")){
int players = 0;
try{
for(Object o : mc.theWorld.loadedEntityList){
Entity e = (Entity)o;
if(e instanceof EntityPlayer){
EntityPlayer p = (EntityPlayer)e;
if(!AntiBot.getInvalid().contains(p) && !p.isInvisible()){
players ++;
}
}
}
}catch(ConcurrentModificationException e){
}
if(players != 1 && players != 2){
sendL(lmode, message);
}
}
}
if((message.equals("You won! Want to play again? Click here! ")||
message.contains("coins! (Win)"))){
memeQueue.add("gg");
}
}else if(currentmode.equalsIgnoreCase("Mineplex")){
String[] teams = {"Green", "Red", "Blue", "Yellow"};
for(int i =0; i < teams.length; i++){
if(message.equals(teams[i] + " won the game!")){
timer.reset();
mineplexL = true;
}
}
if((Boolean)settings.get(L).getValue()){
if(message.toLowerCase().contains("killed by " + mc.thePlayer.getName().toLowerCase() + " ")){
sendL(lmode, message);
}
}
}else if(currentmode.equalsIgnoreCase("Cubecraft")){
if((Boolean)settings.get(L).getValue()){
if(message.toLowerCase().contains("was slain by " + mc.thePlayer.getName().toLowerCase()) ||
message.toLowerCase().contains("burned to death while fighting " + mc.thePlayer.getName().toLowerCase()) ||
message.toLowerCase().contains("was shot by " + mc.thePlayer.getName().toLowerCase()) ||
message.toLowerCase().contains("burnt to a crisp while fighting " + mc.thePlayer.getName().toLowerCase()) ||
message.toLowerCase().contains("couldn't fly while escaping " + mc.thePlayer.getName().toLowerCase()) ||
message.toLowerCase().contains("thought they could survive in the void while escaping " + mc.thePlayer.getName().toLowerCase()) ||
message.toLowerCase().contains("fell to their death while escaping " + mc.thePlayer.getName().toLowerCase())){
sendL(lmode, message);
}
}
if(packet.func_148915_c().getFormattedText().contains("§r§r§e" + mc.thePlayer.getName() + "§r§a won the game!§r")){
memeQueue.add("gg");
}
}
}
}
}
void sendL(String mode, String message){
String[] strs = message.split(" ");
switch (mode){
case"Basic":{
memeQueue.add("L" + " " + strs[0]);
}
break;
case"Sigmeme":{
String phrase = Sigmeme.phrases.get((int) (Math.random() * Sigmeme.phrases.size()));
while(phrase.equalsIgnoreCase(lastMeme) || phrase.equalsIgnoreCase(lastMeme2) || phrase.equalsIgnoreCase(lastMeme3)){
phrase = Sigmeme.phrases.get((int) (Math.random() * Sigmeme.phrases.size()));
}
String mm = ((Options) settings.get(MODE).getValue()).getSelected();
if(mm.equalsIgnoreCase("Cubecraft")){
phrase = "L" + " " + strs[0];
}
memeQueue.add(phrase);
lastMeme = lastMeme2;
lastMeme2 = lastMeme3;
lastMeme3 = phrase;
}
break;
case"Penshen":{
String phrase = Sigmeme.penshen.get((int) (Math.random() * Sigmeme.penshen.size()));
while(phrase.equalsIgnoreCase(lastMeme) || phrase.equalsIgnoreCase(lastMeme2) || phrase.equalsIgnoreCase(lastMeme3)){
phrase = Sigmeme.penshen.get((int) (Math.random() * Sigmeme.penshen.size()));
}
memeQueue.add(phrase);
lastMeme = lastMeme2;
lastMeme2 = lastMeme3;
lastMeme3 = phrase;
}
break;
}
}
}
// NOTE (AI): Sigma AutoGG detects match-end chat patterns and fires 'gg' via
// ChatUtil.sendChat (vanilla sendChatMessage path) or the raw C01 path
// sendChat_NoFilter, which bypasses the client-side command parser.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.
// ===== FILE: November Recode 2.0, feature/command/exec/CommandExecutor.java =====
/* November.lol © 2023 */
package lol.november.feature.command.exec;
import java.util.Arrays;
import lol.november.feature.command.Command;
import lol.november.feature.command.CommandRegistry;
import lol.november.feature.command.exceptions.CommandInvalidArgumentException;
import lol.november.feature.command.exceptions.CommandInvalidSyntaxException;
import lol.november.listener.bus.Listener;
import lol.november.listener.bus.Subscribe;
import lol.november.listener.event.net.EventPacket;
import lol.november.utility.chat.Printer;
import lombok.extern.log4j.Log4j2;
import net.minecraft.network.play.client.C01PacketChatMessage;
/**
* @author Gavin
* @since 2.0.0
*/
@Log4j2
public class CommandExecutor {
/**
* The prefix used to execute commands
*/
private static final String COMMAND_PREFIX = ".";
private CommandRegistry registry;
public CommandExecutor(CommandRegistry registry) {
this.registry = registry;
}
@Subscribe
private final Listener<EventPacket.Out> packetOut = event -> {
if (event.get() instanceof C01PacketChatMessage packet) {
String message = packet.getMessage();
if (!message.startsWith(COMMAND_PREFIX)) return;
event.setCanceled(true);
String[] args = message
.substring(COMMAND_PREFIX.length())
.trim()
.split("\\s+");
if (args.length == 0) return;
Command command = registry.get(args[0].toLowerCase());
if (command == null) {
Printer.print("No command was found with the name \"" + args[0] + "\"");
return;
}
try {
log.info("Dispatching command {}", command.getAliases()[0]);
command.dispatch(Arrays.copyOfRange(args, 1, args.length));
} catch (CommandInvalidSyntaxException e) {
Printer.print("Invalid argument \"" + e.getArgument() + "\".");
Printer.print("Valid syntax: " + command.getSyntax());
} catch (CommandInvalidArgumentException e) {
Printer.print("Invalid argument \"" + e.getArgument() + "\"");
Printer.print("Details: " + e.getDetails());
} catch (Exception e) {
log.error("Failed to dispatch command {}", command.getAliases()[0]);
e.printStackTrace();
Printer.print("&cSomething went wrong, report this to the developers!");
}
}
};
}
// NOTE (AI): The full command executor: every C01 is checked on the packet bus, dot-prefixed messages are cancelled and dispatched through the CommandRegistry with syntax and argument error reporting to chat. Messages without the prefix pass through.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.
// ===== FILE: November Recode 2.0, feature/module/impl/player/IRCChatModule.java =====
/* November.lol © 2023 */
package lol.november.feature.module.impl.player;
import lol.november.November;
import lol.november.feature.module.Category;
import lol.november.feature.module.Module;
import lol.november.feature.module.Register;
import lol.november.listener.bus.Listener;
import lol.november.listener.bus.Subscribe;
import lol.november.listener.event.net.EventPacket;
import lol.november.utility.chat.Printer;
import net.minecraft.network.play.client.C01PacketChatMessage;
/**
* @author Gavin
* @since 2.0.0
*/
@Register(
name = "IRCChat",
description = "lets you talk to other retarded november users",
category = Category.PLAYER
)
public class IRCChatModule extends Module {
/**
* The IRC chat prefix
*/
private static final String IRC_PREFIX = "#";
@Override
public void enable() {
super.enable();
Printer.irc("Talk in IRC chat with the prefix " + IRC_PREFIX);
}
@Subscribe
private final Listener<EventPacket.Out> packetOut = event -> {
if (event.get() instanceof C01PacketChatMessage packet) {
if (!packet.getMessage().startsWith(IRC_PREFIX)) return;
event.setCanceled(true);
November
.socket()
.sendIrcChat(packet.getMessage().substring(IRC_PREFIX.length()));
}
};
}
// NOTE (AI): The full IRC bridge: a C01 whose message starts with '#' is cancelled and forwarded to the November IRC socket with the prefix stripped. The enable handler prints the prefix hint.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.
// ===== FILE: November Recode 2.0, feature/module/impl/player/AutoPlayModule.java =====
/* November.lol © 2023 */
package lol.november.feature.module.impl.player;
import lol.november.November;
import lol.november.feature.module.Category;
import lol.november.feature.module.Module;
import lol.november.feature.module.Register;
import lol.november.feature.setting.Setting;
import lol.november.listener.bus.Listener;
import lol.november.listener.bus.Subscribe;
import lol.november.listener.event.net.EventPacket;
import lol.november.listener.event.player.EventUpdate;
import lol.november.utility.math.timer.Timer;
import net.minecraft.event.ClickEvent;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraft.network.play.client.C01PacketChatMessage;
import net.minecraft.network.play.client.C08PacketPlayerBlockPlacement;
import net.minecraft.network.play.client.C09PacketHeldItemChange;
import net.minecraft.network.play.server.S02PacketChat;
import net.minecraft.network.play.server.S45PacketTitle;
import net.minecraft.util.IChatComponent;
/**
* @author Gavin
* @since 2.0.0
*/
@Register(
name = "AutoPlay",
description = "Automatically plays the next game for you",
category = Category.PLAYER
)
public class AutoPlayModule extends Module {
private final Setting<Mode> mode = new Setting<>("Mode", Mode.HYPIXEL);
private final Setting<Double> delay = new Setting<>(
"Delay",
1.5,
0.01,
0.0,
5.0
);
private final Timer timer = new Timer();
private String playCommand;
private int paperSlot;
@Override
public void disable() {
super.disable();
playCommand = null;
if (mode.getValue() == Mode.BLOCKS_MC && paperSlot != -1) {
November.instance().inventory().sync();
}
paperSlot = -1;
}
@Subscribe
private final Listener<EventUpdate> update = event -> {
if (mc.thePlayer.ticksExisted < 10) {
paperSlot = -1;
playCommand = null;
return;
}
if (mode.getValue() == Mode.HYPIXEL || mode.getValue() == Mode.MUSH_MC) {
if (
playCommand == null ||
!timer.passed(delay.getValue().longValue() * 1000L)
) return;
timer.reset();
mc.thePlayer.sendQueue.addToSendQueueSilent(
new C01PacketChatMessage(playCommand)
);
} else if (mode.getValue() == Mode.BLOCKS_MC) {
if (paperSlot == -1) {
for (int i = 0; i < 9; ++i) {
ItemStack itemStack = mc.thePlayer.inventory.getStackInSlot(i);
if (itemStack != null && itemStack.getItem() == Items.paper) {
paperSlot = i;
timer.reset();
break;
}
}
return;
}
if (!timer.passed(delay.getValue().longValue() * 1000L)) return;
timer.reset();
mc.thePlayer.sendQueue.addToSendQueueSilent(
new C09PacketHeldItemChange(paperSlot)
);
mc.thePlayer.sendQueue.addToSendQueueSilent(
new C08PacketPlayerBlockPlacement(
November.instance().inventory().itemStack()
)
);
November.instance().inventory().sync();
}
};
@Subscribe
private final Listener<EventPacket.In> packetIn = event -> {
if (mode.getValue() == Mode.HYPIXEL) {
if (event.get() instanceof S02PacketChat packet) {
if (packet.getChatComponent() == null) return;
String raw = packet.getChatComponent().getUnformattedText();
if (
raw.contains("You won! Want to play again? Click here! ") ||
raw.contains("You died! Want to play again? Click here! ")
) {
timer.reset();
for (IChatComponent component : packet
.getChatComponent()
.getSiblings()) {
if (
component.getUnformattedText().contains("Click here!") &&
component.getChatStyle().getChatClickEvent() != null
) {
ClickEvent clickEvent = component
.getChatStyle()
.getChatClickEvent();
if (clickEvent.getAction() == ClickEvent.Action.RUN_COMMAND) {
playCommand = clickEvent.getValue();
timer.reset();
return;
}
}
}
}
} else if (event.get() instanceof S45PacketTitle packet) {
if (packet.getMessage() == null) return;
}
}
};
private enum Mode {
HYPIXEL,
BLOCKS_MC,
MUSH_MC,
}
}
// NOTE (AI): The full AutoPlay module: the win or loss chat line is parsed for a RUN_COMMAND click event, the command is stored, and after a configurable delay it is sent as a fresh C01 through addToSendQueueSilent. The BLOCKS_MC mode swaps in a paper-item C09 and C08 sequence instead.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.
// ===== FILE: November Recode 2.0, feature/module/impl/exploit/PhaseModule.java =====
/* November.lol © 2023 */
package lol.november.feature.module.impl.exploit;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
import lol.november.feature.module.Category;
import lol.november.feature.module.Module;
import lol.november.feature.module.Register;
import lol.november.feature.setting.Setting;
import lol.november.listener.bus.Listener;
import lol.november.listener.bus.Subscribe;
import lol.november.listener.event.net.EventPacket;
import lol.november.listener.event.player.EventUpdate;
import net.minecraft.block.BlockGlass;
import net.minecraft.block.state.IBlockState;
import net.minecraft.network.Packet;
import net.minecraft.network.play.client.C01PacketChatMessage;
import net.minecraft.network.play.server.S02PacketChat;
import net.minecraft.network.play.server.S08PacketPlayerPosLook;
import net.minecraft.util.BlockPos;
/**
* @author Gavin
* @since 2.0.0
*/
@Register(
name = "Phase",
description = "Phases through blocks",
category = Category.EXPLOIT
)
public class PhaseModule extends Module {
private final Setting<Mode> mode = new Setting<>("Mode", Mode.CAGE_PHASE);
private final Setting<Server> server = new Setting<>(
"Server",
Server.BLOCKS_MC
);
private final Queue<Packet<?>> packetQueue = new ConcurrentLinkedQueue<>();
private int ticksSinceLastSetback = -1;
private BlockPos phasePos;
private IBlockState phaseState;
private boolean cagePhasing, canPhase = true;
@Override
public void enable() {
super.enable();
canPhase = server.getValue() == Server.GENERIC;
}
@Override
public void disable() {
super.disable();
if (mc.thePlayer != null && !packetQueue.isEmpty()) {
while (!packetQueue.isEmpty()) {
mc.thePlayer.sendQueue.addToSendQueueSilent(packetQueue.poll());
}
}
packetQueue.clear();
ticksSinceLastSetback = -1;
if (cagePhasing) {
if (phasePos != null && phaseState != null) {
mc.theWorld.setBlockState(phasePos, phaseState);
}
cagePhasing = false;
phasePos = null;
phaseState = null;
}
canPhase = true;
}
@Subscribe
private final Listener<EventUpdate> update = event -> {
if (mc.thePlayer.ticksExisted < 5) {
packetQueue.clear();
ticksSinceLastSetback = 0;
phaseState = null;
phasePos = null;
cagePhasing = false;
canPhase = server.getValue() == Server.GENERIC;
return;
}
ticksSinceLastSetback++;
if (mode.getValue() == Mode.CAGE_PHASE) {
if (
ticksSinceLastSetback < 20 || !mc.thePlayer.onGround || !canPhase
) return;
if (!cagePhasing) {
BlockPos under = new BlockPos(mc.thePlayer.getPositionVector()).down();
IBlockState state = mc.theWorld.getBlockState(under);
if (state.getBlock() instanceof BlockGlass) {
cagePhasing = true;
mc.theWorld.setBlockToAir(under);
// Printer.print("Phased through glass");
phasePos = under;
phaseState = state;
}
} else {
if (phasePos != null && phaseState != null) {
// Printer.print("Replaced glass to not desync");
mc.theWorld.setBlockState(phasePos, phaseState);
phaseState = null;
}
}
}
};
@Subscribe
private final Listener<EventPacket.Out> packetOut = event -> {
if (mc.thePlayer == null || mc.thePlayer.ticksExisted < 10) return;
if (cagePhasing) {
if (event.get() instanceof C01PacketChatMessage) return;
event.setCanceled(true);
packetQueue.add(event.get());
}
};
@Subscribe
private final Listener<EventPacket.In> packetIn = event -> {
if (event.get() instanceof S08PacketPlayerPosLook) {
ticksSinceLastSetback = 0;
// Printer.print("Setback");
} else if (event.get() instanceof S02PacketChat packet) {
if (mode.getValue() != Mode.CAGE_PHASE) return;
String raw = packet.getChatComponent().getUnformattedText();
if (server.getValue() == Server.HYPIXEL) {
// TODO
} else if (server.getValue() == Server.BLOCKS_MC) {
if (raw.contains("Cages open in: 2 seconds!")) {
canPhase = true;
} else if (raw.contains("Cages opened! FIGHT!")) {
setState(false);
}
}
}
};
private enum Mode {
CAGE_PHASE,
}
private enum Server {
GENERIC,
BLOCKS_MC,
HYPIXEL,
}
}
// NOTE (AI): The full Phase module: CAGE_PHASE removes the glass under the player, buffers every outgoing packet except C01 while active, restores the block state on disable, and drains the queue through addToSendQueueSilent. The C01 early return at line 126 is the corpus hit.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.
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.
// ===== FILE: GrimAnticheat-Grim, common/src/main/java/ac/grim/grimac/checks/impl/chat/ChatB.java =====
package ac.grim.grimac.checks.impl.chat;
import ac.grim.grimac.api.storage.verbose.Verbose;
import ac.grim.grimac.checks.Check;
import ac.grim.grimac.checks.CheckData;
import ac.grim.grimac.checks.type.PreViaPacketReceiveListener;
import ac.grim.grimac.player.GrimPlayer;
import com.github.retrooper.packetevents.event.PacketReceiveEvent;
import com.github.retrooper.packetevents.protocol.packettype.PacketType;
import com.github.retrooper.packetevents.protocol.player.ClientVersion;
import com.github.retrooper.packetevents.wrapper.play.client.WrapperPlayClientChatCommand;
import com.github.retrooper.packetevents.wrapper.play.client.WrapperPlayClientChatCommandUnsigned;
import com.github.retrooper.packetevents.wrapper.play.client.WrapperPlayClientChatMessage;
// this can false from click events, but I doubt this would actually
// happen unless they're trying to flag, or if the server is set up badly
@CheckData(name = "ChatB", stableKey = "grim.exploit.spigot_antispam_bypass", description = "Invalid chat message")
public class ChatB extends Check implements PreViaPacketReceiveListener {
private static final Verbose V = Verbose.of("[message|command]={str}");
public ChatB(GrimPlayer player) {
super(player);
}
@Override
public void onPreViaPacketReceive(PacketReceiveEvent event) {
if (event.getPacketType() == PacketType.Play.Client.CHAT_MESSAGE) {
String message = new WrapperPlayClientChatMessage(event).getMessage();
if (message.isEmpty() || !message.trim().equals(message)
|| message.startsWith("/") && player.getClientVersion().isNewerThanOrEquals(ClientVersion.V_1_19)) {
if (flag(V.write(verbose()).bool(true).str(message)) && shouldModifyPackets()) {
player.onPacketCancel();
event.setCancelled(true);
}
}
}
if (event.getPacketType() == PacketType.Play.Client.CHAT_COMMAND_UNSIGNED) {
String command = "/" + new WrapperPlayClientChatCommandUnsigned(event).getCommand();
if (!command.stripTrailing().equals(command) && flag(V.write(verbose()).bool(false).str(command))) {
event.setCancelled(true);
player.onPacketCancel();
}
}
if (event.getPacketType() == PacketType.Play.Client.CHAT_COMMAND) {
String command = "/" + new WrapperPlayClientChatCommand(event).getCommand();
if (!command.trim().equals(command) && flag(V.write(verbose()).bool(false).str(command))) {
event.setCancelled(true);
player.onPacketCancel();
}
}
}
}
// NOTE (AI): Grim runs this as a pre-Via check so the message is validated before any protocol translation.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.
// ===== FILE: Updated-NoCheatPlus-NoCheatPlus, NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/chat/ChatListener.java =====
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package fr.neatmonster.nocheatplus.checks.chat;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.Location;
import org.bukkit.command.Command;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.player.AsyncPlayerChatEvent;
import org.bukkit.event.player.PlayerCommandPreprocessEvent;
import org.bukkit.event.player.PlayerLoginEvent;
import org.bukkit.event.player.PlayerLoginEvent.Result;
import fr.neatmonster.nocheatplus.NCPAPIProvider;
import fr.neatmonster.nocheatplus.checks.CheckListener;
import fr.neatmonster.nocheatplus.checks.CheckType;
import fr.neatmonster.nocheatplus.checks.moving.MovingConfig;
import fr.neatmonster.nocheatplus.checks.net.NetData;
import fr.neatmonster.nocheatplus.command.CommandUtil;
import fr.neatmonster.nocheatplus.compat.BridgeMisc;
import fr.neatmonster.nocheatplus.compat.SchedulerHelper;
import fr.neatmonster.nocheatplus.components.NoCheatPlusAPI;
import fr.neatmonster.nocheatplus.components.data.ICheckData;
import fr.neatmonster.nocheatplus.components.data.IData;
import fr.neatmonster.nocheatplus.components.registry.factory.IFactoryOne;
import fr.neatmonster.nocheatplus.components.registry.feature.INotifyReload;
import fr.neatmonster.nocheatplus.components.registry.feature.JoinLeaveListener;
import fr.neatmonster.nocheatplus.config.ConfPaths;
import fr.neatmonster.nocheatplus.config.ConfigFile;
import fr.neatmonster.nocheatplus.config.ConfigManager;
import fr.neatmonster.nocheatplus.logging.Streams;
import fr.neatmonster.nocheatplus.players.DataManager;
import fr.neatmonster.nocheatplus.players.IPlayerData;
import fr.neatmonster.nocheatplus.players.PlayerFactoryArgument;
import fr.neatmonster.nocheatplus.utilities.StringUtil;
import fr.neatmonster.nocheatplus.utilities.ds.prefixtree.SimpleCharPrefixTree;
import fr.neatmonster.nocheatplus.utilities.moving.MovingUtil;
import fr.neatmonster.nocheatplus.worlds.WorldFactoryArgument;
/**
* Central location to listen to events that are relevant for the chat checks.
*
* @see ChatEvent
*/
public class ChatListener extends CheckListener implements INotifyReload, JoinLeaveListener {
// Checks.
/** Captcha handler. */
private final Captcha captcha = addCheck(new Captcha());
/** Commands repetition check. */
private final Commands commands = addCheck(new Commands());
/** Logins check (global,how many simualtenous logins can the server accept in a specified time-frame) */
private final Logins logins = addCheck(new Logins());
/** Chat message check. */
private final Text text = addCheck(new Text());
/** Relogging check (per-player re-log time. */
private final Relog relog = addCheck(new Relog());
// Auxiliary stuff.
/** Commands to be ignored completely. */
private final SimpleCharPrefixTree commandExclusions = new SimpleCharPrefixTree();
/** Commands to be handled as chat (thus handled by Text and not Command check). */
private final SimpleCharPrefixTree chatCommands = new SimpleCharPrefixTree();
/** Commands not to be executed in-game. */
private final SimpleCharPrefixTree consoleOnlyCommands = new SimpleCharPrefixTree();
/** Set world to null after use, primary thread only. */
private final Location useLoc = new Location(null, 0, 0, 0);
@SuppressWarnings("unchecked")
public ChatListener() {
super(CheckType.CHAT);
ConfigFile config = ConfigManager.getConfigFile();
initFilters(config);
// (text inits in constructor.)
final NoCheatPlusAPI api = NCPAPIProvider.getNoCheatPlusAPI();
api.register(api.newRegistrationContext()
.registerConfigWorld(ChatConfig.class)
.factory(new IFactoryOne<WorldFactoryArgument, ChatConfig>() {
@Override
public ChatConfig getNewInstance(WorldFactoryArgument arg) {
return new ChatConfig(arg.worldData);
}
})
.registerConfigTypesPlayer()
.context() //
.registerDataPlayer(ChatData.class)
.factory(new IFactoryOne<PlayerFactoryArgument, ChatData>() {
@Override
public ChatData getNewInstance(PlayerFactoryArgument arg) {
return new ChatData();
}
})
.addToGroups(CheckType.CHAT, true, IData.class, ICheckData.class)
.context() //
);
}
@EventHandler(ignoreCancelled = false, priority = EventPriority.LOWEST)
public void onPlayerChat(final AsyncPlayerChatEvent event) {
final Player player = event.getPlayer();
final boolean alreadyCancelled = event.isCancelled();
if (!DataManager.getPlayerData(player).isCheckActive(CheckType.CHAT, player)) {
return;
}
// Tell TickTask to update cached permissions.
// (Might omit this if already cancelled.)
final IPlayerData pData = DataManager.getPlayerData(player);
final ChatConfig cc = pData.getGenericInstance(ChatConfig.class);
// Then the no chat check.
// TODO: isMainThread: Could consider event.isAsync ?
if (textChecks(player, event.getMessage(), cc, pData, false, alreadyCancelled)) {
event.setCancelled(true);
}
}
@EventHandler(priority = EventPriority.NORMAL)
public void onPlayerLogin(final PlayerLoginEvent event) {
if (event.getResult() != Result.ALLOWED) {
return;
}
final Player player = event.getPlayer();
final IPlayerData pData = DataManager.getPlayerData(player);
if (!pData.isCheckActive(CheckType.CHAT, player)) {
return;
}
final ChatConfig cc = pData.getGenericInstance(ChatConfig.class);
final ChatData data = pData.getGenericInstance(ChatData.class);
// (No forced permission update, because the associated permissions are treated as hints rather.)
// Reset captcha of player if needed.
synchronized (data) {
captcha.resetCaptcha(player, cc, data, pData);
}
// Fast relog check.
if (relog.isEnabled(player, pData) && relog.unsafeLoginCheck(player, cc, data,pData)) {
event.disallow(Result.KICK_OTHER, cc.relogKickMessage);
}
else if (logins.isEnabled(player, pData) && logins.check(player, cc, data)) {
event.disallow(Result.KICK_OTHER, cc.loginsKickMessage);
}
}
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onPlayerTeleportCommandMonitor(final PlayerCommandPreprocessEvent event) {
final String command = getTeleportLikeCommand(event.getMessage());
if (command != null) {
final Player player = event.getPlayer();
DataManager.getPlayerData(player).getGenericInstance(NetData.class)
.recordTeleportCommand(command, player.getLocation(), System.currentTimeMillis());
}
}
/** We listen to PlayerCommandPreprocess events because commands can be used for spamming too. */
@EventHandler(priority = EventPriority.LOWEST)
public void onPlayerCommandPreprocess(final PlayerCommandPreprocessEvent event) {
final Player player = event.getPlayer();
// Tell TickTask to update cached permissions.
final IPlayerData pData = DataManager.getPlayerData(player);
final ChatConfig cc = pData.getGenericInstance(ChatConfig.class);
// Left-trim is necessary because the server accepts leading spaces with commands.
final String message = event.getMessage();
final String lcMessage = StringUtil.leftTrim(message).toLowerCase();
// TODO: Remove bukkit: etc.
final String[] split = lcMessage.split(" ", 2);
final String alias = split[0].substring(1);
final Command command = CommandUtil.getCommand(alias);
final List<String> messageVars = new ArrayList<String>(); // Could as well use an array and allow null on input of SimpleCharPrefixTree.
messageVars.add(lcMessage);
// Message to run chat checks on.
String checkMessage = message;
if (command != null) {
messageVars.add("/" + command.getLabel().toLowerCase() + (split.length > 1 ? (" " + split[1]) : ""));
}
if (alias.indexOf(":") != -1) {
final int index = message.indexOf(":") + 1;
if (index < message.length()) {
checkMessage = message.substring(index);
messageVars.add(checkMessage.toLowerCase());
}
}
// Prevent commands from being used by players (e.g. /op /deop /reload).
if (cc.consoleOnlyCheck && consoleOnlyCommands.hasAnyPrefixWords(messageVars)) {
if (command == null || command.testPermission(player)) {
player.sendMessage(cc.consoleOnlyMessage);
}
event.setCancelled(true);
return;
}
// Handle as chat or command.
if (chatCommands.hasAnyPrefixWords(messageVars)) {
// Treat as chat.
// TODO: Consider requesting permission updates on these, for consistency.
// TODO: Cut off the command ?.
if (textChecks(player, checkMessage, cc, pData, true, false)) {
event.setCancelled(true);
}
}
else if (!commandExclusions.hasAnyPrefixWords(messageVars)) {
// Treat as command.
if (commands.isEnabled(player, pData) && commands.check(player, checkMessage, cc, pData, captcha)) {
event.setCancelled(true);
}
else {
// TODO: Consider always checking these?
// Note that this checks for prefixes, not prefix words.
final MovingConfig mcc = pData.getGenericInstance(MovingConfig.class);
if (mcc.passableUntrackedCommandCheck && mcc.passableUntrackedCommandPrefixes.hasAnyPrefix(messageVars)) {
if (checkUntrackedLocation(player, message, mcc, pData)) {
event.setCancelled(true);
}
}
}
}
}
private String getTeleportLikeCommand(final String message) {
if (message == null) {
return null;
}
final String lcMessage = StringUtil.leftTrim(message).toLowerCase();
if (lcMessage.length() < 2 || lcMessage.charAt(0) != '/') {
return null;
}
final String[] split = lcMessage.split(" ", 2);
String command = split[0].substring(1);
final int namespaceIndex = command.indexOf(':');
if (namespaceIndex >= 0 && namespaceIndex + 1 < command.length()) {
command = command.substring(namespaceIndex + 1);
}
return isTeleportLikeCommand(command) ? command : null;
}
private boolean isTeleportLikeCommand(final String command) {
return command.equals("rtp")
|| command.equals("randomtp")
|| command.equals("randomteleport")
|| command.equals("wild")
|| command.equals("wilderness")
|| command.equals("spawn")
|| command.equals("hub")
|| command.equals("lobby")
|| command.equals("home")
|| command.equals("homes")
|| command.equals("warp")
|| command.equals("warps")
|| command.equals("back")
|| command.equals("tpa")
|| command.equals("tpaccept")
|| command.equals("tpahere")
|| command.equals("tp")
|| command.equals("teleport")
|| command.equals("tphere");
}
private boolean checkUntrackedLocation(final Player player, final String message,
final MovingConfig mcc, final IPlayerData pData) {
final Location loc = player.getLocation(useLoc);
boolean cancel = false;
if (MovingUtil.shouldCheckUntrackedLocation(player, loc, pData)) {
final Location newTo = MovingUtil.checkUntrackedLocation(loc);
if (newTo != null) {
if (mcc.passableUntrackedCommandTryTeleport
&& SchedulerHelper.teleportEntity(player, newTo, BridgeMisc.TELEPORT_CAUSE_CORRECTION_OF_POSITION)) {
NCPAPIProvider.getNoCheatPlusAPI().getLogManager().info(Streams.TRACE_FILE, player.getName() + " runs the command '" + message + "' at an untracked location: " + loc + " , teleport to: " + newTo);
}
else {
NCPAPIProvider.getNoCheatPlusAPI().getLogManager().info(Streams.TRACE_FILE, player.getName() + " runs the command '" + message + "' at an untracked location: " + loc + " , cancel the command.");
cancel = true;
}
}
}
useLoc.setWorld(null); // Cleanup.
return cancel;
}
private void initFilters(ConfigFile config) {
CommandUtil.feedCommands(consoleOnlyCommands, config, ConfPaths.PROTECT_COMMANDS_CONSOLEONLY_CMDS, true);
CommandUtil.feedCommands(chatCommands, config, ConfPaths.CHAT_COMMANDS_HANDLEASCHAT, true);
CommandUtil.feedCommands(commandExclusions, config, ConfPaths.CHAT_COMMANDS_EXCLUSIONS, true);
}
private boolean textChecks(final Player player, final String message,
final ChatConfig cc, final IPlayerData pData,
final boolean isMainThread, final boolean alreadyCancelled) {
return text.isEnabled(player, pData) && text.check(player, message, cc, pData, captcha, isMainThread, alreadyCancelled);
}
@Override
public void onReload() {
// Read some things from the global config file.
ConfigFile config = ConfigManager.getConfigFile();
initFilters(config);
text.onReload();
logins.onReload();
}
@Override
public void playerJoins(final Player player) {
final IPlayerData pData = DataManager.getPlayerData(player);
final ChatConfig cc = pData.getGenericInstance(ChatConfig.class);
final ChatData data = pData.getGenericInstance(ChatData.class);
/*
* TODO: The isEnabled check must be done with IWorldData (no locking).
* Specifically because enabling/disabling checks should be done in the
* primary thread, regardless of the capabilities of WorldDataManager
* implementation.
*/
synchronized (data) {
if (captcha.isEnabled(player, pData)) {
if (captcha.shouldCheckCaptcha(player, cc, data, pData)) {
// shouldCheckCaptcha: only if really enabled.
// TODO: Later: add check for cc.captchaOnLogin or so (before shouldCheckCaptcha).
// TODO: maybe schedule this to come after other plugins messages.
captcha.sendNewCaptcha(player, cc, data);
}
}
}
}
@Override
public void playerLeaves(final Player player) {}
}
// NOTE (AI): NCP routes chat through Bukkit events rather than raw packets, so the listener is the dispatcher for the whole chat check family; the individual Text, Commands and Captcha files hold the scoring logic.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.
// ===== FILE: amnoah-BetterAnticheat, core/src/main/java/better/anticheat/core/check/impl/chat/ImpossibleMessageCheck.java =====
package better.anticheat.core.check.impl.chat;
import better.anticheat.core.BetterAnticheat;
import better.anticheat.core.check.Check;
import better.anticheat.core.check.CheckInfo;
import better.anticheat.core.player.Player;
import com.github.retrooper.packetevents.event.simple.PacketPlayReceiveEvent;
import com.github.retrooper.packetevents.protocol.packettype.PacketType;
import com.github.retrooper.packetevents.wrapper.play.client.WrapperPlayClientChatMessage;
/**
* This check looks for impossible chat messages.
*/
@CheckInfo(name = "ImpossibleMessage", category = "chat")
public class ImpossibleMessageCheck extends Check {
public ImpossibleMessageCheck(BetterAnticheat plugin, Player player) {
super(plugin, player);
}
@Override
public void handleReceivePlayPacket(PacketPlayReceiveEvent event) {
/*
* This check looks for messages that are either fully empty or only made up of spacing characters.
*/
if (event.getPacketType() != PacketType.Play.Client.CHAT_MESSAGE) return;
WrapperPlayClientChatMessage wrapper = new WrapperPlayClientChatMessage(event);
String message = wrapper.getMessage();
// You cannot send empty messages or messages starting with spaces.
if (message.trim().isEmpty()) fail("emp");
else if (message.charAt(0) == ' ') fail("spc");
}
}
// NOTE (AI): BetterAnticheat is a modern PacketEvents-based anticheat; the check is minimal by design.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.
// ===== FILE: funkemunky-KauriV3, Anticheat/src/main/java/dev/brighten/ac/check/impl/chat/Log4J.java =====
package dev.brighten.ac.check.impl.chat;
import com.github.retrooper.packetevents.wrapper.play.client.WrapperPlayClientChatMessage;
import dev.brighten.ac.api.check.CheckType;
import dev.brighten.ac.check.Check;
import dev.brighten.ac.check.CheckData;
import dev.brighten.ac.check.WCancellable;
import dev.brighten.ac.data.APlayer;
import dev.brighten.ac.utils.annotation.Bind;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@CheckData(name = "Log4J", checkId = "log4j", type = CheckType.CHAT)
public class Log4J extends Check {
public Log4J(APlayer player) {
super(player);
}
private final Pattern pattern = Pattern.compile("\\$\\{.*}");
@Bind
WCancellable<WrapperPlayClientChatMessage> chatPacket = packet -> {
Matcher matcher = pattern.matcher(packet.getMessage());
if(matcher.matches()) {
flag("Tried to use JNDI exploit");
return true;
}
debug("Sent chat message: " + packet.getMessage());
return false;
};
}
// NOTE (AI): Kauri's check binding model attaches this WCancellable to the chat packet stream; the check is a direct response to the log4j vulnerability wave.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.
// ===== FILE: Photon-GitHub-AntiCheatAddition, src/main/java/de/photon/anticheataddition/modules/checks/impossiblechat/ImpossibleChat.java =====
package de.photon.anticheataddition.modules.checks.impossiblechat;
import de.photon.anticheataddition.modules.ViolationModule;
import de.photon.anticheataddition.user.User;
import de.photon.anticheataddition.util.violationlevels.Flag;
import de.photon.anticheataddition.util.violationlevels.ViolationLevelManagement;
import de.photon.anticheataddition.util.violationlevels.ViolationManagement;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.AsyncPlayerChatEvent;
public final class ImpossibleChat extends ViolationModule implements Listener
{
public static final ImpossibleChat INSTANCE = new ImpossibleChat();
private final int cancelVl = loadInt(".cancel_vl", 75);
private ImpossibleChat()
{
super("ImpossibleChat");
}
@EventHandler
public void onAsyncChat(final AsyncPlayerChatEvent event)
{
final var user = User.getUser(event.getPlayer());
if (User.isUserInvalid(user, this)) return;
if (user.getPlayer().isSprinting() ||
user.getPlayer().isSneaking() ||
user.getPlayer().isBlocking() ||
user.getPlayer().isDead() ||
// Have the inventory opened for some time
(user.hasOpenInventory() && user.notRecentlyOpenedInventory(1000)))
{
this.getManagement().flag(Flag.of(user).setAddedVl(25).setCancelAction(cancelVl, () -> event.setCancelled(true)));
}
}
@Override
protected ViolationManagement createViolationManagement()
{
return ViolationLevelManagement.builder(this).loadThresholdsToManagement().withDecay(600, 25).build();
}
}
// NOTE (AI): Photon listens on the Bukkit chat event rather than the packet; the inventory-open timing requirement uses the user's open-inventory tracker.Related Packets
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
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.
Module Analyses Using C01PacketChatMessage
Full source walkthroughs of the modules and anti-cheats that use this packet.