0x14 C14PacketTabComplete

Player presses Tab in chat to request auto-completion. Sends the partial message or command.

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

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

chatcommandplayer
Comprehensive 7/8

Fields

FieldTypeDescription
messageStringPartial message text being tab-completed
hasTargetBlockbooleanWhether the cursor is over a block
targetBlockBlockPos (optional)Block position the cursor is over

Wire Encoding

FieldTypeNotes
MessageStringPartial command/chat string
Has PositionboolWhether cursor is over a block
Target BlockBlockPos (only if pos=true)Looked-at block position

MCP References

MCPNetHandlerPlayServer.processTabComplete()

Handler Interface

HNDINetHandlerPlayServer

Notes

The server responds with S3APacketTabComplete containing matching commands/player names. The optional BlockPos allows for block-sensitive completions (e.g., filling /give with block IDs of looked-at block).

Vanilla Source

C14PacketTabComplete.java76 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
import net.minecraft.util.BlockPos;
8
import org.apache.commons.lang3.StringUtils;
9
10
public class C14PacketTabComplete implements Packet<INetHandlerPlayServer>
11
{
12
    private String message;
13
    private BlockPos targetBlock;
14
15
    public C14PacketTabComplete()
16
    {
17
    }
18
19
    public C14PacketTabComplete(String msg)
20
    {
21
        this(msg, (BlockPos)null);
22
    }
23
24
    public C14PacketTabComplete(String msg, BlockPos target)
25
    {
26
        this.message = msg;
27
        this.targetBlock = target;
28
    }
29
30
    /**
31
     * Reads the raw packet data from the data stream.
32
     */
33
    public void readPacketData(PacketBuffer buf) throws IOException
34
    {
35
        this.message = buf.readStringFromBuffer(32767);
36
        boolean flag = buf.readBoolean();
37
38
        if (flag)
39
        {
40
            this.targetBlock = buf.readBlockPos();
41
        }
42
    }
43
44
    /**
45
     * Writes the raw packet data to the data stream.
46
     */
47
    public void writePacketData(PacketBuffer buf) throws IOException
48
    {
49
        buf.writeString(StringUtils.substring(this.message, 0, 32767));
50
        boolean flag = this.targetBlock != null;
51
        buf.writeBoolean(flag);
52
53
        if (flag)
54
        {
55
            buf.writeBlockPos(this.targetBlock);
56
        }
57
    }
58
59
    /**
60
     * Passes this Packet on to the NetHandler for processing.
61
     */
62
    public void processPacket(INetHandlerPlayServer handler)
63
    {
64
        handler.processTabComplete(this);
65
    }
66
67
    public String getMessage()
68
    {
69
        return this.message;
70
    }
71
72
    public BlockPos getTargetBlock()
73
    {
74
        return this.targetBlock;
75
    }
76
}

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

Deep Dive

Role in the protocol

C14 requests command and player-name completions: a String (the partial input, with or without the leading slash) and an optional BlockPos for block-sensitive completions. The server replies with S3APacketTabComplete. GuiChat fires it on the tab key; the position is set when the cursor is over a block, which lets /give-style commands complete with looked-at block data.

Vanilla handling

processTabComplete calls the server command dispatcher's getTabCompletions with the message and target block, collects the returned strings and replies with S3A. There is no rate limit or throttle in the bundled 1.8.9 handler, which is what makes the packet a free information oracle: every registered command, including plugin-registered ones, is reachable through the completion namespace.

Why clients touch it

Three families across the 8 clients. (1) Plugin enumeration: Rise 5.99 Plugins sends '/' and parses S3A, with a Bypass mode that sweeps '/a'..'/z'; Sigma 4.11's PluginFinder command sends '/' once and parses the reply for ':' prefixed plugin names. (2) Crasher: Rise 5.99's FAWE mode sends a deeply nested command string. (3) Chat UX: the Rise 6.x Chat module drives its own completion via C14 with a block position.

Exploit surface

The missing throttle is the whole story: a client can dump the full command namespace by sweeping single letters, and servers that hide the plain '/' reply still leak commands through per-letter prefixes. The FAWE crash works because the completion handler parses the input command recursively; a 4-deep loop body of nested for() statements overflows that parser. Anti-cheats ignore C14; anti-exploit plugins rate-limit completions, which is exactly what Plugins' Bypass mode cycles around.

Server-Side Handling

processTabComplete: getTabCompletions(message, targetBlock) then S3APacketTabComplete with the results. No permission pre-check beyond what the dispatcher applies to the requesting player, no rate limit, no length cap beyond the String wire limit. Completions are computed against the live command registry, so plugin commands appear without any /plugins permission.

Protocol Analysis

VarInt-length-prefixed String + bool hasTargetBlock + optional BlockPos. The message does not need to start with '/' for the server to run the completion path. Replies are a String array; plugin-registered commands commonly appear as pluginname:command, which is the parsing key for enumeration tools.

Anti-Cheat Landscape

No anti-cheat measures C14. Anti-exploit and anti-spam plugins throttle completion requests per second; the '/a'..'/z' sweep is designed to stay under naive thresholds while still covering the namespace. The FAWE payload is a plugin-specific parser kill and is invisible to movement anti-cheats.

implementation Implementation Cases

The tab-complete request packet and the protocol's least-guarded information oracle. Plugin enumeration (Rise 5.99 Plugins, Sigma PluginFinder), a FAWE command-parser crash (Rise 5.99 Crasher) and custom chat completion (Rise 6.x Chat) are the corpus families.

Plugins (Rise 5.99, LiquidSense Dev, November Recode 2.0)

Enumerate the server's plugin list through the tab-complete namespace and print it in chat.

Normal mode sends C14('/') once and parses the S3A reply for completions. Bypass mode sends C14('/' + letter) for every letter of the alphabet to recover commands that servers filter from the plain dump; results are cached and the module disables after the sweep.

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

Vanilla hook: onEnable (direct PacketUtil.sendPacket), S3APacketTabComplete via PacketReceiveEvent.
The per-letter sweep is the anti-throttle trade-off: slow enough to dodge naive rate limits, complete enough to enumerate hidden commands.
Variations: Sigma 4.11 implements the same idea as a one-shot command rather than a module. LiquidSense Dev's Plugins sends a single C14('/') on enable, parses the S3A reply for ':'-prefixed names, prints the sorted plugin list, and auto-disables on a 20-tick timeout. November Recode 2.0's PluginsCommand sends C14('/' + optional custom prefix), parses S3A suggestions with a PLUGIN_REGEX for bare names plus ':'-split names, dedupes into a Set, and aborts on a 10-second timeout.
PluginFinder (Sigma 4.11)

Discover plugins with a single '/'-completion and a 20 second listener window.

The command sends C14('/'), registers an EventPacket listener, parses S3A completions for ':' prefixed names, prints the deduplicated plugin list and unregisters. A 20 second timer aborts the wait.

Source: Sigma 4.11, info/sigmaclient/management/command/impl/PluginFinder.java

Vanilla hook: EventPacket (register/unregister pattern), NetUtil.sendPacket.
One packet per invocation makes it effectively undetectable by rate-based guards; it trades completeness for stealth compared to Rise's alphabet sweep.
Variations: Rise 5.99 Plugins covers the same ground as a module with a Bypass mode; no other client has a C14 plugin finder.
Crasher (FAWE) (Rise 5.99)

Crash FastAsyncWorldEdit by completing a pathologically nested command string.

FAWE mode sends C14 with the nested '/to for(i=0;i<256;i++){...}' string every tick via sendPacketWithoutEvent.

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

Vanilla hook: onPreMotion (PreMotionEvent).
Targets a plugin parser, not the anti-cheat; a patched FAWE just returns an error message. The one-packet-per-tick rate is unremarkable.
Variations: No equivalent tab-complete crash in the other 7 clients.
Chat (custom tab complete) (Rise 6.1.30, Rise 6.2.4)

Drive the custom chat GUI's tab completion through C14 with a block position.

The Chat module intercepts the tab key and sends C14PacketTabComplete(text, blockpos) via the vanilla send queue, then renders the S3A response in its own completion UI.

Source: Rise 6.2.4, Client-release2/Client/src/main/java/com/alan/clients/module/impl/render/chat/Chat.java

Vanilla hook: Custom chat GUI key handler; no packet event hook on the send side.
None; it mirrors vanilla completion behavior.
Variations: Same module file exists in Rise 6.1.30 with the identical send call.
Disabler (C14 crasher) (LiquidSense Dev)

Spam a tab-complete request with a random huge number command every 155 ticks while the watchdog disabler is active, loading the server's command parser.

Inside the watchdog-active branch (abc true), every 155 ticks the module sends new C14PacketTabComplete('/' + random double in 10e19..10e20) directly on the NetworkManager, alongside the C0F/C00 queue management that makes up the rest of the disabler.

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

Vanilla hook: UpdateEvent tick; send via mc.getNetHandler().getNetworkManager().sendPacket.
Random 10e19..10e20 doubles defeat naive command whitelists; the 155-tick cadence keeps the load under per-second rate limits while still hammering the parser over minutes.
Variations: Rise 5.99's Crasher FAWE mode is the structural cousin but uses a nested-command string; LiquidSense's is random-number spam.
LuaEventPacket (November Recode 2.0)

Expose C14 to November's Lua scripting API as id 0x14 with direction, for scripted tab-complete automation.

packetIds maps C14PacketTabComplete.class to 0x14; the wrapper stores the numeric id and 'out' direction from the EventPacket so scripts can match without class references.

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

Vanilla hook: EventPacket.Out through the scripting bridge.
None; read-only mapping.
S3APacketTabComplete is the receive-side hook for enumeration; the send side is direct construction (Rise 5.99, Sigma) or the vanilla send queue (Rise 6.x Chat). LiquidSense Dev parses S3A in PacketEvent and sends C14 via addToSendQueue or the raw NetworkManager; November Recode 2.0 sends via sendQueue.addToSendQueue from a command and exposes 0x14 to scripts.
Rise 5.99 and Sigma construct the packet directly; Rise 6.x Chat goes through mc.thePlayer.sendQueue.addToSendQueue. Tenacity's PacketUtil whitelist also classifies C14 as a client packet. LiquidSense Dev's Plugins auto-disables after one exchange; November Recode 2.0's PluginsCommand is a command with a 10s timeout and a regex-based plugin-name parser.

anticheat Anti-Cheat Checks

The tab-complete packet is a favorite target for exploit and spam checks because its text field is fully client-controlled. Grim runs two checks (blank completion and length cap), BetterAnticheat flags empty completions, and Intave rewrites completions to hide its own commands. Most of the remaining corpus hits are Bukkit TabCompleter plumbing for anticheat commands, not packet checks.

ChatA blank tab complete (Grim) (GrimAnticheat-Grim)

Flag and cancel tab-complete packets that carry no meaningful text.

On TAB_COMPLETE (1.13+ only), wraps the packet and checks whether the text is "/" or empty after trimming. If so, the check flags and cancels the packet before it reaches the server.

Detects: Clients spamming empty tab-complete requests, which is a server-lag and exploit primitive.

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

Variations: BetterAnticheat ImpossibleCompletionCheck implements the same empty-text idea (see below).
CrashH tab complete length (Grim) (GrimAnticheat-Grim)

Block oversized tab-complete requests that crash the server command tree.

Caps the tab-complete text at 256 characters for normal players and 32500 for players who can use gamemaster blocks, and mirrors Paper's patch: any request over 64 characters must contain a space before index 64. Violations are cancelled and flagged with the offending length.

Detects: Tab-complete crash payloads, absurd length values, and command-tree abuse via the completion field.

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

Variations: No other anticheat in the corpus enforces a tab-complete length cap.
ImpossibleCompletionCheck (BetterAnticheat) (amnoah-BetterAnticheat)

Catch tab completions sent with no typed text at all.

On TAB_COMPLETE, wraps the packet and fails when the text field is empty, since vanilla requires some input before a completion can be requested.

Detects: Clients sending empty completion requests, usually as part of a packet-spam or exploit sequence.

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

Variations: Grim ChatA runs the same logic with packet cancellation; the BetterAnticheat version only records a fail.
CommandFilter tab complete (Intave) (intave-intave)

Hide Intave's own commands from tab completion and harden the completion stream against tab-kick crashes.

On inbound CHAT and TAB_COMPLETE packets, rewrites "/iac" and "/intave" prefixes to a forwarder command for players without permission. On outbound TAB_COMPLETE, strips any suggestion containing "/intave" or "/iac" before it reaches the client.

Detects: Nothing malicious by itself. It is a hardening filter over the tab-complete stream that also prevents players from discovering the anticheat through completions.

Source: intave-intave, src/main/java/de/jpx3/intave/module/filter/CommandFilter.java

Variations: SafeguardAC registers a TabComplete check in its check list, but its source is not present in the corpus, only the compiled class.

Wiki Cross-Reference

PLAY 0x14: string message plus bool hasPos plus optional looked-at BlockPos; reply comes as S3A.

Text need not start with slash; the 1.8.9 handler runs dispatcher completions with no throttle.

Position is set when the cursor is over a block, enabling block-sensitive command suggestions.

MCP 1.8.9 C14PacketTabComplete implements Packet dispatching to INetHandlerPlayServer.processTabComplete; wire serde is readPacketData/writePacketData via readBlockPos, readBoolean, readStringFromBuffer.

1.8.9 callers: GuiChat.sendAutocompleteRequest sends new C14PacketTabComplete (line 263): https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/client/gui/GuiChat.java

Cross-checked against minecraft.wiki (CC BY-SA 3.0) for 1.8.9 accuracy.