0x15 C15PacketClientSettings

Client sends its locale, view distance, chat mode, chat colors, difficulty preference, and cape visibility.

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

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

playersettingschat
Comprehensive 7/8

Fields

FieldTypeDescription
localeStringClient language (en_US, zh_CN, etc.)
viewDistancebyteClient render distance in chunks (2-32)
chatVisibilitybyte0=full, 1=commandsOnly, 2=hidden
chatColorsbooleanEnable chat color/formatting codes
difficultybyteClient difficulty preference (0-3)
showCapebooleanShow player capes

Wire Encoding

FieldTypeNotes
LocaleStringen_US, zh_CN, etc.
View Distancebyte2-32 chunks
Chat Modebyte0=shown, 1=commandsOnly, 2=hidden
Chat Colorsbool
Difficultyunsigned byteClient-side preference
Show Capebool

MCP References

MCPNetHandlerPlayServer.processClientSettings()

Handler Interface

HNDINetHandlerPlayServer

Notes

Sent by vanilla client every time settings change. The server stores locale for player language detection. View distance affects how many chunks the server sends. Rise 6.0 ClientSpoofer sends spoofed C15 to change the locale string for server-side language detection bypass and to set a fake view distance.

Vanilla Source

C15PacketClientSettings.java81 lines · MCP 1.8.9Original ↗
1
package net.minecraft.network.play.client;
2
3
import java.io.IOException;
4
import net.minecraft.entity.player.EntityPlayer;
5
import net.minecraft.network.Packet;
6
import net.minecraft.network.PacketBuffer;
7
import net.minecraft.network.play.INetHandlerPlayServer;
8
9
public class C15PacketClientSettings implements Packet<INetHandlerPlayServer>
10
{
11
    private String lang;
12
    private int view;
13
    private EntityPlayer.EnumChatVisibility chatVisibility;
14
    private boolean enableColors;
15
    private int modelPartFlags;
16
17
    public C15PacketClientSettings()
18
    {
19
    }
20
21
    public C15PacketClientSettings(String langIn, int viewIn, EntityPlayer.EnumChatVisibility chatVisibilityIn, boolean enableColorsIn, int modelPartFlagsIn)
22
    {
23
        this.lang = langIn;
24
        this.view = viewIn;
25
        this.chatVisibility = chatVisibilityIn;
26
        this.enableColors = enableColorsIn;
27
        this.modelPartFlags = modelPartFlagsIn;
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.lang = buf.readStringFromBuffer(7);
36
        this.view = buf.readByte();
37
        this.chatVisibility = EntityPlayer.EnumChatVisibility.getEnumChatVisibility(buf.readByte());
38
        this.enableColors = buf.readBoolean();
39
        this.modelPartFlags = buf.readUnsignedByte();
40
    }
41
42
    /**
43
     * Writes the raw packet data to the data stream.
44
     */
45
    public void writePacketData(PacketBuffer buf) throws IOException
46
    {
47
        buf.writeString(this.lang);
48
        buf.writeByte(this.view);
49
        buf.writeByte(this.chatVisibility.getChatVisibility());
50
        buf.writeBoolean(this.enableColors);
51
        buf.writeByte(this.modelPartFlags);
52
    }
53
54
    /**
55
     * Passes this Packet on to the NetHandler for processing.
56
     */
57
    public void processPacket(INetHandlerPlayServer handler)
58
    {
59
        handler.processClientSettings(this);
60
    }
61
62
    public String getLang()
63
    {
64
        return this.lang;
65
    }
66
67
    public EntityPlayer.EnumChatVisibility getChatVisibility()
68
    {
69
        return this.chatVisibility;
70
    }
71
72
    public boolean isColorsEnabled()
73
    {
74
        return this.enableColors;
75
    }
76
77
    public int getModelPartFlags()
78
    {
79
        return this.modelPartFlags;
80
    }
81
}

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

Deep Dive

Role in the protocol

C15 declares client preferences: locale string, render distance byte, chat visibility enum, chat colors flag and a model-part bitmask. Vanilla re-sends it from GameSettings whenever any of those settings change, and the server stores the values on the player. It is the only serverbound packet that carries the client's locale, which makes it the hook for server-side language detection.

Vanilla handling

processClientSettings delegates to EntityPlayerMP.handleClientSettings, which stores translator (locale), chatVisibility and chatColours on the player and pushes the model-part flags into DataWatcher slot 10. The render distance byte is parsed but not stored by the bundled 1.8.9 handler; chunk streaming distance stays server-configured. The locale is what language-detection plugins read.

Why clients touch it

None of the clients ships a locale-spoof module; the corpus hits are indirect. Rise 6.x PingSpoofComponent lists C15 in its blink tuple so settings packets are held and replayed during blink spoofs, and the script PacketAPI exposes sendSettings(). November Recode 2.0 maps C15PacketClientSettings to wire id 0x15 in its LuaEventPacket wrapper so Lua scripts can recognize the packet by id. Spicy's Bhop imports C15 without using it. Clients known to cancel C15 for locale bypasses exist outside this corpus.

Exploit surface

The packet is informational and server-validated trivially, so abuse is limited to two corners: re-sending it to reset the server's stored locale after a language change (defeating per-locale chat filters), and the blink interaction, where holding C15 for the blink window freezes the server's view of client settings. The model-part bitmask is the only field that reaches other players (via DataWatcher), so a corrupted mask is the only client-visible side effect.

Server-Side Handling

processClientSettings -> EntityPlayerMP.handleClientSettings: stores locale, chat visibility and colors; model-part flags go to DataWatcher slot 10 (broadcast to other players). Render distance is parsed and discarded in the bundled 1.8.9 sources. No validation beyond String length.

Protocol Analysis

String locale + byte viewDistance + byte chatVisibility enum + bool colors + byte modelPartFlags (bitmask for cape/jacket/sleeves/pants/hat). Re-sent on every settings change, so a settings GUI session naturally emits several. The locale is a plain String and is never matched against a known list.

Anti-Cheat Landscape

No anti-cheat measures C15. Language-detection and anti-spam plugins key off the locale string; spoofing it changes plugin behavior, not server physics. The blink-hold interaction matters to anti-cheats only insofar as the same component also holds C03 and C0F packets, which is where the actual detection signal lives.

implementation Implementation Cases

The settings declaration packet. No locale-spoof module exists in the corpus; C15 shows up only inside Rise 6.x's blink-hold component, the script PacketAPI, November Recode 2.0's Lua packet-id map, plus dead imports in Spicy Bhop.

PingSpoofComponent (blink hold) (Rise 6.1.30, Rise 6.2.4)

Hold C15 (with C13, C17, C18, C19 and movement packets) while the client blinks, then replay it in order.

C15 is in the blink class tuple. When blink() enables the regular and blink tuples, onPacket cancels matching packets and parks them with a timestamp; PostMotionEvent replays entries whose delay elapsed and dispatch() flushes the rest on world change.

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

Vanilla hook: PacketSendEvent, PacketReceiveEvent, PostMotionEvent, WorldChangeEvent.
Holding C15 is invisible; the component's value is holding C0F/C00/C03 together so the server sees a consistent, delayed stream. The blink window is what movement anti-cheats measure.
Variations: Identical component in Rise 6.1.30.
PacketAPI (script bridge) (Rise 6.1.30, Rise 6.2.4)

Expose a settings re-declaration to the scripting layer.

sendSettings() constructs a default C15PacketClientSettings and sends it via PacketUtil.send.

Source: Rise 6.2.4, Client-release2/Client/src/main/java/com/alan/clients/script/api/PacketAPI.java

Vanilla hook: No event hook; direct PacketUtil.send from script code.
None; a default settings packet is indistinguishable from a vanilla re-send.
Variations: Identical PacketAPI in Rise 6.1.30.
LuaEventPacket (script bridge) (November Recode 2.0)

Expose the serverbound packet id space to the Lua scripting API: C15 resolves to id 0x15 so scripts can recognize settings declarations by id.

A static block maps every serverbound play packet class to its 1.8.9 wire id, C15PacketClientSettings to 0x15. The constructor resolves the id from the EventPacket payload via getOrDefault (falling back to -1) and stamps a direction string ('out' for EventPacket.Out, 'in' otherwise); Lua event wrappers then pass the id and direction to scripts. The map exists because runtime obfuscation would break reflection-based lookups.

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

Vanilla hook: EventPacket.In/Out bus events translated into the Lua wrapper; no packet is constructed or sent here.
None: the wrapper only reads the packet class. The id map gives scripts awareness of settings sends, not a locale bypass.
Variations: Rise 6.x actually holds and replays the packet (PingSpoofComponent) and can re-send it (PacketAPI sendSettings); November Recode 2.0's hit is passive plumbing.
No module-level C15 hook in the corpus; the packet is handled by component infrastructure (Rise 6.x), script calls, or the Lua wrapper (November Recode 2.0).
Vanilla GameSettings emits C15 on settings change in every client; Rise 6.x adds the blink tuple and script bridge; November Recode 2.0 maps it in the Lua wrapper. Spicy Bhop carries dead imports of C15 (and C14, C17, C18, C19) with no call sites.

anticheat Anti-Cheat Checks

The client-settings packet carries locale, view distance, chat visibility and the skin-parts bitmask, so anticheats read it for two purposes: enforcing protocol limits (Grim CrashE, BetterAnticheat SmallRender) and tying chat visibility to chat activity (Grim ChatD, BetterAnticheat HiddenChat). Photon reads the skin bitmask to catch skinblinker mods that toggle parts while sprinting or that set the unused 0x80 bit.

ChatD hidden chat (Grim) (GrimAnticheat-Grim)

Stop chat messages from clients that set chat visibility to hidden.

Tracks the chatVisibility flag from CLIENT_SETTINGS in both the play and configuration protocol states, then cancels any CHAT_MESSAGE or CHAT_COMMAND sent while the flag is HIDDEN, flagging each attempt.

Detects: Hidden-chat clients that keep sending chat, a common bypass primitive for chat moderation and reporting systems.

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

Variations: BetterAnticheat HiddenChatCheck implements the same rule with a one-message grace period instead of cancellation.
CrashE view distance (Grim) (GrimAnticheat-Grim)

Enforce the minimum view distance the client may advertise.

On CLIENT_SETTINGS, wraps the packet and if the view distance is below 2, flags the value and rewrites it to 2 before the server processes the packet.

Detects: Clients advertising a zero or negative view distance, which destabilizes chunk sending and can be used as a crash or lag primitive.

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

Variations: BetterAnticheat SmallRenderCheck fails on the same condition but does not rewrite the value.
SkinBlinkerSprinting (Photon) (Photon-GitHub-AntiCheatAddition)

Catch skin-part toggles that happen while the player is sprinting or sneaking.

On CLIENT_SETTINGS, reads the skin-parts bitmask and compares it to the last saved mask. If the player is sprinting or sneaking and the mask changed, the module flags with a violation level of 50. An unmodified client can only change settings from the menu, where sprint and sneak are impossible.

Detects: Skinblinker mods that flash skin parts during movement, which is how many 1.8-era skinblinker bypasses worked.

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

Variations: The sibling module SkinBlinkerUnusedBit flags the 0x80 bit in the same mask, which vanilla clients never set; LabyMod and similar clients use that bit for cosmetics.
HiddenChatCheck (BetterAnticheat) (amnoah-BetterAnticheat)

Catch players who hide the chat but keep chatting.

Tracks chatVisibility from CLIENT_SETTINGS (FULL and SYSTEM set canChat true, HIDDEN sets it false). When a CHAT_MESSAGE arrives while hidden, the check fails, with a one-message grace period because the settings packet can lag behind the chat packet.

Detects: Clients that hide the chat box while still sending messages, an evasion pattern for chat-based detection.

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

Variations: Grim ChatD is the same rule with hard cancellation instead of a grace period.
SmallRenderCheck (BetterAnticheat) (amnoah-BetterAnticheat)

Flag impossibly small render distances.

On CLIENT_SETTINGS, fails when the view distance is below 2, the lowest value an unmodified modern client can select.

Detects: Clients advertising render distances below 2, which some modules set to reduce chunk load or destabilize server chunk sending.

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

Variations: Grim CrashE flags and rewrites the same value; the BetterAnticheat version only records a fail.

Wiki Cross-Reference

1.8.9 wire is lang max 7 chars, byte view, byte chat visibility, bool colors, unsigned byte model-part mask.

Has no separate difficulty or cape bools; skin parts ride in the mask and reach others via DataWatcher.

Resent on settings change; server stores locale and chat prefs while chunk radius stays server-side.

MCP 1.8.9 C15PacketClientSettings implements Packet dispatching to INetHandlerPlayServer.processClientSettings; wire serde is readPacketData/writePacketData via readBoolean, readByte, readStringFromBuffer, readUnsignedByte.

1.8.9 callers: GameSettings.sendSettingsToServer sends new C15PacketClientSettings (line 1214): https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/client/settings/GameSettings.java

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