0x17 C17PacketCustomPayload

Sends a plugin channel message from client to server. Used for mod communication.

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

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

pluginmoddingchannel
Comprehensive 8/8

Fields

FieldTypeDescription
channelStringPlugin channel name (e.g. MC|BEdit, REGISTER)
dataPacketBuffer (remaining)Channel-specific payload

Wire Encoding

FieldTypeNotes
ChannelStringPlugin channel identifier
Data Lengthshort
Databyte[]Channel-specific payload

MCP References

MCPNetHandlerPlayServer.processCustomPayload()

Handler Interface

HNDINetHandlerPlayServer

Notes

Common vanilla channels: "MC|BEdit" (book edit), "MC|BSign" (book sign), "MC|ItemName" (anvil rename), "MC|TrSel" (trade select). Mods use their own channel names.

Vanilla Source

C17PacketCustomPayload.java73 lines · MCP 1.8.9Original ↗
1
package net.minecraft.network.play.client;
2
3
import io.netty.buffer.ByteBuf;
4
import java.io.IOException;
5
import net.minecraft.network.Packet;
6
import net.minecraft.network.PacketBuffer;
7
import net.minecraft.network.play.INetHandlerPlayServer;
8
9
public class C17PacketCustomPayload implements Packet<INetHandlerPlayServer>
10
{
11
    private String channel;
12
    private PacketBuffer data;
13
14
    public C17PacketCustomPayload()
15
    {
16
    }
17
18
    public C17PacketCustomPayload(String channelIn, PacketBuffer dataIn)
19
    {
20
        this.channel = channelIn;
21
        this.data = dataIn;
22
23
        if (dataIn.writerIndex() > 32767)
24
        {
25
            throw new IllegalArgumentException("Payload may not be larger than 32767 bytes");
26
        }
27
    }
28
29
    /**
30
     * Reads the raw packet data from the data stream.
31
     */
32
    public void readPacketData(PacketBuffer buf) throws IOException
33
    {
34
        this.channel = buf.readStringFromBuffer(20);
35
        int i = buf.readableBytes();
36
37
        if (i >= 0 && i <= 32767)
38
        {
39
            this.data = new PacketBuffer(buf.readBytes(i));
40
        }
41
        else
42
        {
43
            throw new IOException("Payload may not be larger than 32767 bytes");
44
        }
45
    }
46
47
    /**
48
     * Writes the raw packet data to the data stream.
49
     */
50
    public void writePacketData(PacketBuffer buf) throws IOException
51
    {
52
        buf.writeString(this.channel);
53
        buf.writeBytes((ByteBuf)this.data);
54
    }
55
56
    /**
57
     * Passes this Packet on to the NetHandler for processing.
58
     */
59
    public void processPacket(INetHandlerPlayServer handler)
60
    {
61
        handler.processVanilla250Packet(this);
62
    }
63
64
    public String getChannelName()
65
    {
66
        return this.channel;
67
    }
68
69
    public PacketBuffer getBufferData()
70
    {
71
        return this.data;
72
    }
73
}

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

Deep Dive

Role in the protocol

C17 is the plugin-channel transport: a channel String plus a short-length-prefixed byte payload. Vanilla channels cover brand (MC|Brand), books (MC|BEdit, MC|BSign), anvil rename (MC|ItemName), villager trades (MC|TrSel), command blocks (MC|AdvCdm) and channel registration (REGISTER). It is the most structurally open serverbound packet, since the server hands unknown channels to plugin handlers unchanged.

Vanilla handling

processVanilla250Packet dispatches on channel: MC|BEdit and MC|BSign deserialize an ItemStack and validate its NBT (ItemWritableBook.isNBTValid / ItemEditableBook.validBookTagContents) before applying; MC|TrSel reads an int trade index against the open merchant container; MC|AdvCdm requires command blocks enabled plus permission level 2 and creative mode; MC|ItemName renames the anvil item. Unknown channels are ignored by vanilla. The client side registers MC|Brand once per connection via ClientBrandRetriever.

Why clients touch it

Five families. (1) Brand spoofing: Rise 5.99 ClientSpoofer rewrites C17 payloads per mode, and the Rise 6.x ClientSpoofer's LabyMod mode cancels and replays six LabyMod/Intave payloads. (2) Disabler payload rewriting: Rise 6.2.4 TestDisabler overwrites every C17 payload with 'eyser'. (3) Console spam: Rise 6.x ChannelConsoleSpammer floods REGISTER. (4) Crash payloads: Rise 5.99 Crasher's BEdit and Mare modes push deeply nested book NBT over MC|BEdit; Tenacity's CrasherCommand floods a fixed C17. (5) Blink: PingSpoofComponent holds C17 in its blink tuple. The two new research clients add two more. LiquidSense Dev filters the channel stream in AntiForge (cancel non-MC| payloads and FMLProxyPacket, rewrite MC|Brand to vanilla), sends a spoofed AntiCheat channel JSON in HYTBypass, floods MC|BSign and MC|BEdit book payloads in ServerCrasher, and forces MC|Brand in MixinNetHandlerPlayClient. November Recode 2.0 has no dedicated C17 module; its LuaEventPacket wrapper maps C17 to id 0x17 for the scripting API.

Exploit surface

The brand channel is a fingerprinting surface in both directions: servers read MC|Brand and REGISTER to identify clients, and spoofers forge them. The MC|BEdit path is the crash vector because the server deserializes a full ItemStack and validates deep NBT; the nested {extra:[{...}} page strings in Rise 5.99's BEdit mode are the same family as the C0E and C10 book crashes. REGISTER flooding abuses plugin channel registries that allocate per registration. Behavioral mismatch is the anti-cheat counter: a spoofed brand that behaves unlike the real client is itself a signal.

Server-Side Handling

processVanilla250Packet: channel dispatch with per-channel validation. MC|BEdit/MC|BSign validate book NBT and throw IOException on invalid tags; MC|AdvCdm gates on command blocks enabled, permission 2 and creative; MC|ItemName renames with a length check; MC|TrSel indexes the open ContainerMerchant. Unknown channels are ignored. The packet data is a PacketBuffer, so parsing is stateful and plugin-dependent.

Protocol Analysis

String channel + short data length + bytes. The REGISTER channel carries a colon-separated channel list, which is how mods announce handlers. MC|Brand is sent exactly once per connection right after login, which is why brand spoofers tell the user to rejoin. Payloads are length-prefixed shorts, so the 32KB cap applies per payload.

Anti-Cheat Landscape

Anti-cheats do not parse C17 content; anti-exploit plugins and client-detection plugins do. Client detection reads MC|Brand and REGISTER lists and compares against known client signatures, so spoofing is a cat-and-mouse over payload bytes. Book-NBT crash payloads are detected only by patched parsers. REGISTER flooding is rate-limited by anti-spam plugins.

implementation Implementation Cases

The plugin-channel packet and the corpus's widest abuse surface: brand spoofing (Rise 5.99 ClientSpoofer, Rise 6.x LabyMod), payload rewriting (TestDisabler), REGISTER flooding (ChannelConsoleSpammer), book-NBT crash payloads (Rise 5.99 Crasher, Tenacity CrasherCommand) and blink-hold integration.

ClientSpoofer (Rise 5.99)

Rewrite the C17 brand handshake so servers fingerprint the client as Forge, Lunar, LabyMod, PvP Lounge, CheatBreaker or Geyser.

On PacketSendEvent, mutates every C17 in place: sets a new payload (writeString or raw bytes) per mode, and for Lunar also rewrites the channel to REGISTER. Requires a rejoin because MC|Brand is sent once per connection.

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

Vanilla hook: onPacketSend (PacketSendEvent).
A spoofed brand that behaves unlike the real client (missing plugin channels, wrong packets) is the detectable mismatch; pure payload rewriting is otherwise invisible.
Variations: Rise 6.x splits this into a ClientSpoofer module with per-client Modes; LabyMod is the richest of them.
LabyMod (client spoofer) (Rise 6.1.30, Rise 6.2.4)

Fully impersonate the LabyMod handshake: cancel the real C17 and replay six LabyMod and Intave channel payloads.

On PacketSendEvent, cancels the original C17 and sends MC|Brand 'labymod', REGISTER for labymod:neominecraft:intavelabymod3:main, version JSONs on labymod:neo and labymod3:main, and two minecraft:intave clientconfig messages, all via sendNoEvent. The spoofed version defaults to 4.2.31.

Source: Rise 6.2.4, Client-release2/Client/src/main/java/com/alan/clients/module/impl/other/clientspoofer/LabyMod.java

Vanilla hook: PacketSendEvent.
The Intave config payloads advertise legacySneakHeight/legacyOldRange/legacyOldSlowdown false, which Intave-based servers read to enable stricter checks; mis-spoofing them can backfire.
Variations: Identical Mode in Rise 6.1.30.
ChannelConsoleSpammer (Rise 6.1.30, Rise 6.2.4)

Flood the server with REGISTER payloads naming random MC| channels.

On TickEvent, sends channelsPerTick (1..100) REGISTER packets, each with a random 8-16 letter channel name, via PacketUtil.send.

Source: Rise 6.2.4, Client-release2/Client/src/main/java/com/alan/clients/module/impl/exploit/consolespammer/ChannelConsoleSpammer.java

Vanilla hook: TickEvent.
Detectable by rate limits on REGISTER and by channel-registry memory accounting; it is a console nuisance, not a movement exploit.
Variations: Same Mode in Rise 6.1.30.
Crasher (BEdit / Mare) (Rise 5.99, Tenacity 6.0)

Push crafted book NBT over the MC|BEdit channel to crash servers with unpatched book parsers.

Rise 5.99's BEdit mode sends 30 MC|BEdit payloads whose book pages are deeply nested {extra:[{...}} JSON; Mare mode repeats the same construction packets.getValue() times. Tenacity's CrasherCommand floods a fixed C17 with repeated U+1D11E bytes.

Source: Tenacity 6.0, dev/tenacity/command/impl/CrasherCommand.java

Vanilla hook: MotionEvent (Tenacity module path), direct send queue (command path), onPreMotion (Rise 5.99).
The nested-JSON payloads target chat/JSON deserializers; patched servers reject the book NBT via isNBTValid and drop the packet. Rate-based detection is trivial for the 30x flood.
Variations: Rise 5.99 carries both BEdit and Mare in one Crasher module; Tenacity exposes the flood as a chat command with a configurable packet count.
TestDisabler (payload rewrite) (Rise 6.2.4)

Rewrite every outgoing C17 payload to fixed bytes as a disabler test mode.

On PacketSendEvent, replaces the C17 buffer with the raw bytes of the string 'eyser' without cancelling the packet.

Source: Rise 6.2.4, Client-release2/Client/src/main/java/com/alan/clients/module/impl/exploit/disabler/TestDisabler.java

Vanilla hook: PacketSendEvent.
Corrupting every C17 breaks the brand handshake and any mod channel traffic, which is obvious to client-detection plugins; the mode is experimental by design.
Variations: Not present in Rise 6.1.30; Rise 6.1.30's VulcanDisabler carries only a commented-out C17 check.
AntiForge (payload filter) (LiquidSense Dev)

Strip Forge and mod fingerprints from the C17 stream: cancel non-MC| payloads and FMLProxyPacket, and rewrite MC|Brand to the literal 'vanilla'.

The PacketEvent handler, gated on enabled and not a singleplayer world, cancels FMLProxyPacket by class name, cancels any C17 whose channel does not start with 'MC|', and for MC|Brand replaces the payload with a buffer writing the string 'vanilla'. The file carries an older commented-out handler (lines 28 to 56) that did the same checks in a different order; the live handler merged them.

Source: LiquidSense Dev, net/ccbluex/liquidbounce/features/special/AntiForge.java

Vanilla hook: PacketEvent (send side), handleEvents returns true so the listener always fires.
Blocking every non-MC| channel breaks mod handshakes, so the client looks vanilla to plugin-channel scanners; the MC|Brand rewrite to 'vanilla' matches what a plain client announces. Servers that fingerprint via REGISTER or modded payloads see a clean stream.
Variations: This is the LiquidBounce AntiForge special class shipped inside LiquidSense Dev; November Recode 2.0 has no equivalent module, and its LuaEventPacket only maps C17 to 0x17 for scripts.
HYTBypass (AntiCheat payload) (LiquidSense Dev)

Send a crafted JSON payload on the 'AntiCheat' channel two seconds after joining a world, advertising a spoofed client fingerprint.

On WorldEvent, spawns a thread that sleeps 2000ms, builds a JsonObject with a base64 hash, the Chinese title for 'Minecraft 1.8.9', isLiquidbounce false, path 'mixins.mcwrapper.json' and the player name, writes it into a PacketBuffer, and sends C17 on channel 'AntiCheat' via the network manager. The payload is aimed at servers whose anti-cheat plugin asks clients to self-identify on that channel.

Source: LiquidSense Dev, me/AquaVit/liquidSense/modules/misc/HYTBypass.java

Vanilla hook: WorldEvent (threaded send).
The payload claims a non-LiquidBounce wrapper (isLiquidbounce false) and a mixin path, a direct counter to servers that fingerprint LiquidSense via the AntiCheat channel; a wrong or missing answer marks the client.
Variations: The base64 and mixins.mcwrapper.json fields are specific to this bypass; the module is a one-shot per world join, unlike AntiForge which filters the whole session.
ServerCrasher (book flood) (LiquidSense Dev)

Crash unpatched servers by flooding MC|BSign and MC|BEdit with book NBT payloads, plus position-spam crash modes in the same module shell.

BookFlood mode, on every pre-motion tick, builds an ItemStack writable book with a 50-page NBTTagList of 600-character random strings and sends 100 C17 payloads alternating MC|BSign and MC|BEdit, each writing the book ItemStack into a fresh PacketBuffer. The other modes are position based (AACNew and AACOther flood C04 at huge offsets, MassiveChunkLoading steps y to 255) or chat based (WorldEdit //calc, Pex /pex promote).

Source: LiquidSense Dev, net/ccbluex/liquidbounce/features/module/modules/exploit/ServerCrasher.java

Vanilla hook: onEnable (one-shot modes), MotionEvent PRE (BookFlood loop), WorldEvent and TickEvent (self-disable guards).
The 100-per-tick book flood is the same family as Rise 5.99's Crasher BEdit and Tenacity's CrasherCommand: deep NBT deserialization on the server. The random channel choice between BSign and BEdit doubles the parser paths hit.
Variations: The channel alternation and 50-page by 600-char page construction differ from Rise's nested JSON pages; the module is the only crash tool in the two new clients.
LuaEventPacket (scripting wrapper) (November Recode 2.0)

Expose C17 (and every other serverbound class) to Lua scripts as a numeric packet id plus direction.

A static map binds each packet class to its protocol id, C17 at 0x17; the LuaEventPacket constructor resolves the incoming EventPacket's class through the map and records 'out' for EventPacket.Out sends, 'in' otherwise. The @DontObfuscate annotation keeps the class name readable so the Lua runtime can reflect it.

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

Vanilla hook: EventPacket wrap point in the scripting engine.
This is a scripting surface, not an exploit: it lets user scripts intercept and rewrite C17 traffic; the map is the ground truth the Lua API uses instead of reflection, because obfuscation would break class lookups.
Variations: The same wrapper backs every packet impl in this corpus; November Recode 2.0 has no dedicated C17 module, so this map entry is its only corpus appearance for C17.
PacketSendEvent for rewrite/cancel (Rise 5.99, Rise 6.x), TickEvent for REGISTER floods, direct send-queue pushes for crash commands (Tenacity).
Rise 5.99 mutates the packet in place; Rise 6.x cancels and replays via sendNoEvent; Tenacity pushes raw packets into the vanilla send queue. PingSpoofComponent additionally holds C17 in its blink tuple in both Rise 6.x builds. LiquidSense Dev filters and rewrites C17 in its PacketEvent (AntiForge), sends crafted payloads on world join (HYTBypass), floods book channels (ServerCrasher), and forces MC|Brand in MixinNetHandlerPlayClient. November Recode 2.0 exposes C17 to Lua scripts via LuaEventPacket (id 0x17). LiquidSense's MemoryFixer imports C17PacketCustomPayload but never uses it; the import is dead code and the module only calls System.gc on a timer.

anticheat Anti-Cheat Checks

The custom payload packet is the plugin channel carrier: brand, mod handshake, book edit, sign, anvil rename and trade data all arrive inside it. Anticheats use it for three things: client brand identification on the minecraft:brand channel, validation of the payloads that can carry exploit data such as book edit NBT and oversized payloads, and mod fingerprinting for cheat-mod detection. Because the packet is the only one that can smuggle arbitrary bytes, payload parsing is also where crash and JNDI mitigations attach.

ClientBrand (Grim) (GrimAnticheat-Grim)

Reads the brand channel, records the client's brand for staff and database, and disconnects blacklisted Forge clients that shipped with extended reach.

PacketReceiveListener on PLUGIN_MESSAGE in the play and configuration states. It handles only the brand channel, minecraft:brand on 1.13+ and MC|Brand before. Data longer than 64 bytes or empty marks the brand as invalid; otherwise it strips the length byte, removes the (Velocity) proxy suffix, strips color codes, alerts staff unless the brand is ignored, and writes the brand into the session row. Forge brands on 1.18.2 to 1.19.3 clients are disconnected when the config blocks blacklisted Forge clients, referencing the known Forge reach hack.

Detects: Spoofed or oversized brand payloads and Forge clients with built-in reach hacks.

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

Variations: Shard ClientBrand.kt is a near-identical port with the same Forge reach disconnect; Photon BrandChannelData stores the last 10 brand messages for sentinel checks; Intave PayloadInReader extracts the channel tag across protocol versions.
ExploitB (Grim) (GrimAnticheat-Grim)

Validates book edit and book sign payloads against the player's tracked inventory, killing item-book exploits.

On 1.13 and older the book data arrives in the C17 payload on the MC|BEdit and MC|BSign channels, parsed by PayloadBookEdit into an ItemStack. The check then compares slot, item type, amount, meta, author, pages, title and NBT against the copy of the book taken when the player last used the item, with 16 distinct violation codes: expected slot, no pages, title too long, invalid page, modified NBT, and others. On 1.14+ it runs the same validation on the dedicated EDIT_BOOK packet.

Detects: Book duplication, item NBT manipulation and inventory desync exploits delivered through the book payload.

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

Variations: Intave scans payloads in PayloadInReader for custom-client channels; Kauri and Photon do not validate book payloads and rely on inventory checks instead.
ClientBrand (Shard) (KaelusAI-Shard)

Kotlin brand check that records the client brand, alerts staff, and disconnects Forge clients on the reach-exploit version range.

PacketCheck subscribing to PLUGIN_MESSAGE in the play and configuration states. It matches the versioned brand channel, accepts the first brand only, marks data over 64 bytes or empty as invalid, strips the length byte and the (Velocity) suffix, strips color, stores it on the player, alerts unless ignored, and disconnects Forge brands between 1.18.2 and 1.19.4 when configured.

Detects: Spoofed brand payloads and Forge clients with the extended reach bug.

Source: KaelusAI-Shard, src/main/kotlin/ac/shard/checks/impl/misc/ClientBrand.kt

Variations: Grim's ClientBrand is the original this file is derived from; LightAntiCheat ClientBrandRecognizer matches known client brand strings; Photon BrandChannelData feeds brand messages into sentinel checks.
PayloadInReader (Intave) (intave-intave)

ProtocolLib reader that extracts the plugin channel tag and payload bytes from the custom payload packet across all protocol versions.

AbstractPacketReader on the payload packet. tag() reads the channel name from string, MinecraftKey or CustomPacketPayloadWrapper fields depending on the protocol version, strips the minecraft: prefix, and returns unsupported on 1.21+ when the layout changed. readBytes and readStringNormal pull the PacketDataSerializer buffer via reflection for downstream parsers, and readStringWithExtraByte reads the length-prefixed brand-style string.

Detects: Feeds channel and payload data to Intave's custom-client detection, brand tracking and payload-based checks.

Source: intave-intave, src/main/java/de/jpx3/intave/packet/reader/PayloadInReader.java

Variations: Grim and Shard use PacketEvents wrappers instead of ProtocolLib reflection; Photon BrandChannelData listens via ParsedPluginMessageListener.
BrandChannelData (Photon) (Photon-GitHub-AntiCheatAddition)

Stores the last brand channel messages per user so sentinel checks can fingerprint modded clients.

A RingBuffer capped at 10 holds brand channel messages. A ParsedPluginMessageListener implementation updates the user's data on every brand-channel message; hasBrandChannelMessage checks membership and listBrandChannelMessages joins them for display. The ring buffer exists so a malicious client spamming the brand channel cannot exhaust memory.

Detects: Provides the brand message history used by Photon sentinel modules to detect known cheat clients.

Source: Photon-GitHub-AntiCheatAddition, src/main/java/de/photon/anticheataddition/user/data/subdata/BrandChannelData.java

Variations: Grim, Shard and LightAntiCheat store a single normalized brand string instead of a message history.

Wiki Cross-Reference

The vanilla server enforces a 32767-byte length limit on the payload data for unrecognized channels.

MCP 1.8.9 C17PacketCustomPayload implements Packet dispatching to INetHandlerPlayServer.processVanilla250Packet; wire serde is readPacketData/writePacketData via readBytes, readStringFromBuffer, readableBytes.

1.8.9 callers: GuiCommandBlock.actionPerformed sends new C17PacketCustomPayload (line 95) +5 more: https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/client/gui/GuiCommandBlock.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 C17PacketCustomPayload

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