0x38 S38PacketPlayerListItem

Adds, updates, or removes entries from the tab player list. Used for player join/leave, gamemode changes, ping updates, and display name changes.

Clientbound (Server → Client) · PLAY · net/minecraft/network/play/server/S38PacketPlayerListItem.java

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

playertablist
Comprehensive 8/8

Fields

FieldTypeDescription
actionVarInt Enum0=ADD_PLAYER, 1=UPDATE_GAMEMODE, 2=UPDATE_LATENCY, 3=UPDATE_DISPLAY_NAME, 4=REMOVE_PLAYER
playersPlayerInfo[]List of AddPlayerData entries (UUID, name, profile properties, gamemode, ping, display name)

Wire Encoding

FieldTypeNotes
ActionVarInt Enum0=add, 1=updateGamemode, 2=updateLatency, 3=updateDisplayName, 4=remove
Number of PlayersVarInt
Per-Player DataUUID + String + Property[] + VarInt + VarInt + ChatComponentVaries by action type

MCP References

MCPNetHandlerPlayClient.handlePlayerListItem()

Handler Interface

HNDINetHandlerPlayClient

Notes

Action 0 (ADD_PLAYER): UUID, name, skin properties, gamemode, ping, display name. Action 4 (REMOVE_PLAYER): just UUID. Action 2 (UPDATE_LATENCY): UUID + ping. This is how the client builds the tab list and gets player skins.

Vanilla Source

S38PacketPlayerListItem.java271 lines · MCP 1.8.9Original ↗
1
package net.minecraft.network.play.server;
2
3
import com.google.common.base.Objects;
4
import com.google.common.collect.Lists;
5
import com.mojang.authlib.GameProfile;
6
import com.mojang.authlib.properties.Property;
7
import java.io.IOException;
8
import java.util.List;
9
import net.minecraft.entity.player.EntityPlayerMP;
10
import net.minecraft.network.Packet;
11
import net.minecraft.network.PacketBuffer;
12
import net.minecraft.network.play.INetHandlerPlayClient;
13
import net.minecraft.util.IChatComponent;
14
import net.minecraft.world.WorldSettings;
15
16
public class S38PacketPlayerListItem implements Packet<INetHandlerPlayClient>
17
{
18
    private S38PacketPlayerListItem.Action action;
19
    private final List<S38PacketPlayerListItem.AddPlayerData> players = Lists.<S38PacketPlayerListItem.AddPlayerData>newArrayList();
20
21
    public S38PacketPlayerListItem()
22
    {
23
    }
24
25
    public S38PacketPlayerListItem(S38PacketPlayerListItem.Action actionIn, EntityPlayerMP... players)
26
    {
27
        this.action = actionIn;
28
29
        for (EntityPlayerMP entityplayermp : players)
30
        {
31
            this.players.add(new S38PacketPlayerListItem.AddPlayerData(entityplayermp.getGameProfile(), entityplayermp.ping, entityplayermp.theItemInWorldManager.getGameType(), entityplayermp.getTabListDisplayName()));
32
        }
33
    }
34
35
    public S38PacketPlayerListItem(S38PacketPlayerListItem.Action actionIn, Iterable<EntityPlayerMP> players)
36
    {
37
        this.action = actionIn;
38
39
        for (EntityPlayerMP entityplayermp : players)
40
        {
41
            this.players.add(new S38PacketPlayerListItem.AddPlayerData(entityplayermp.getGameProfile(), entityplayermp.ping, entityplayermp.theItemInWorldManager.getGameType(), entityplayermp.getTabListDisplayName()));
42
        }
43
    }
44
45
    /**
46
     * Reads the raw packet data from the data stream.
47
     */
48
    public void readPacketData(PacketBuffer buf) throws IOException
49
    {
50
        this.action = (S38PacketPlayerListItem.Action)buf.readEnumValue(S38PacketPlayerListItem.Action.class);
51
        int i = buf.readVarIntFromBuffer();
52
53
        for (int j = 0; j < i; ++j)
54
        {
55
            GameProfile gameprofile = null;
56
            int k = 0;
57
            WorldSettings.GameType worldsettings$gametype = null;
58
            IChatComponent ichatcomponent = null;
59
60
            switch (this.action)
61
            {
62
                case ADD_PLAYER:
63
                    gameprofile = new GameProfile(buf.readUuid(), buf.readStringFromBuffer(16));
64
                    int l = buf.readVarIntFromBuffer();
65
                    int i1 = 0;
66
67
                    for (; i1 < l; ++i1)
68
                    {
69
                        String s = buf.readStringFromBuffer(32767);
70
                        String s1 = buf.readStringFromBuffer(32767);
71
72
                        if (buf.readBoolean())
73
                        {
74
                            gameprofile.getProperties().put(s, new Property(s, s1, buf.readStringFromBuffer(32767)));
75
                        }
76
                        else
77
                        {
78
                            gameprofile.getProperties().put(s, new Property(s, s1));
79
                        }
80
                    }
81
82
                    worldsettings$gametype = WorldSettings.GameType.getByID(buf.readVarIntFromBuffer());
83
                    k = buf.readVarIntFromBuffer();
84
85
                    if (buf.readBoolean())
86
                    {
87
                        ichatcomponent = buf.readChatComponent();
88
                    }
89
90
                    break;
91
92
                case UPDATE_GAME_MODE:
93
                    gameprofile = new GameProfile(buf.readUuid(), (String)null);
94
                    worldsettings$gametype = WorldSettings.GameType.getByID(buf.readVarIntFromBuffer());
95
                    break;
96
97
                case UPDATE_LATENCY:
98
                    gameprofile = new GameProfile(buf.readUuid(), (String)null);
99
                    k = buf.readVarIntFromBuffer();
100
                    break;
101
102
                case UPDATE_DISPLAY_NAME:
103
                    gameprofile = new GameProfile(buf.readUuid(), (String)null);
104
105
                    if (buf.readBoolean())
106
                    {
107
                        ichatcomponent = buf.readChatComponent();
108
                    }
109
110
                    break;
111
112
                case REMOVE_PLAYER:
113
                    gameprofile = new GameProfile(buf.readUuid(), (String)null);
114
            }
115
116
            this.players.add(new S38PacketPlayerListItem.AddPlayerData(gameprofile, k, worldsettings$gametype, ichatcomponent));
117
        }
118
    }
119
120
    /**
121
     * Writes the raw packet data to the data stream.
122
     */
123
    public void writePacketData(PacketBuffer buf) throws IOException
124
    {
125
        buf.writeEnumValue(this.action);
126
        buf.writeVarIntToBuffer(this.players.size());
127
128
        for (S38PacketPlayerListItem.AddPlayerData s38packetplayerlistitem$addplayerdata : this.players)
129
        {
130
            switch (this.action)
131
            {
132
                case ADD_PLAYER:
133
                    buf.writeUuid(s38packetplayerlistitem$addplayerdata.getProfile().getId());
134
                    buf.writeString(s38packetplayerlistitem$addplayerdata.getProfile().getName());
135
                    buf.writeVarIntToBuffer(s38packetplayerlistitem$addplayerdata.getProfile().getProperties().size());
136
137
                    for (Property property : s38packetplayerlistitem$addplayerdata.getProfile().getProperties().values())
138
                    {
139
                        buf.writeString(property.getName());
140
                        buf.writeString(property.getValue());
141
142
                        if (property.hasSignature())
143
                        {
144
                            buf.writeBoolean(true);
145
                            buf.writeString(property.getSignature());
146
                        }
147
                        else
148
                        {
149
                            buf.writeBoolean(false);
150
                        }
151
                    }
152
153
                    buf.writeVarIntToBuffer(s38packetplayerlistitem$addplayerdata.getGameMode().getID());
154
                    buf.writeVarIntToBuffer(s38packetplayerlistitem$addplayerdata.getPing());
155
156
                    if (s38packetplayerlistitem$addplayerdata.getDisplayName() == null)
157
                    {
158
                        buf.writeBoolean(false);
159
                    }
160
                    else
161
                    {
162
                        buf.writeBoolean(true);
163
                        buf.writeChatComponent(s38packetplayerlistitem$addplayerdata.getDisplayName());
164
                    }
165
166
                    break;
167
168
                case UPDATE_GAME_MODE:
169
                    buf.writeUuid(s38packetplayerlistitem$addplayerdata.getProfile().getId());
170
                    buf.writeVarIntToBuffer(s38packetplayerlistitem$addplayerdata.getGameMode().getID());
171
                    break;
172
173
                case UPDATE_LATENCY:
174
                    buf.writeUuid(s38packetplayerlistitem$addplayerdata.getProfile().getId());
175
                    buf.writeVarIntToBuffer(s38packetplayerlistitem$addplayerdata.getPing());
176
                    break;
177
178
                case UPDATE_DISPLAY_NAME:
179
                    buf.writeUuid(s38packetplayerlistitem$addplayerdata.getProfile().getId());
180
181
                    if (s38packetplayerlistitem$addplayerdata.getDisplayName() == null)
182
                    {
183
                        buf.writeBoolean(false);
184
                    }
185
                    else
186
                    {
187
                        buf.writeBoolean(true);
188
                        buf.writeChatComponent(s38packetplayerlistitem$addplayerdata.getDisplayName());
189
                    }
190
191
                    break;
192
193
                case REMOVE_PLAYER:
194
                    buf.writeUuid(s38packetplayerlistitem$addplayerdata.getProfile().getId());
195
            }
196
        }
197
    }
198
199
    /**
200
     * Passes this Packet on to the NetHandler for processing.
201
     */
202
    public void processPacket(INetHandlerPlayClient handler)
203
    {
204
        handler.handlePlayerListItem(this);
205
    }
206
207
    public List<S38PacketPlayerListItem.AddPlayerData> getEntries()
208
    {
209
        return this.players;
210
    }
211
212
    public S38PacketPlayerListItem.Action getAction()
213
    {
214
        return this.action;
215
    }
216
217
    public String toString()
218
    {
219
        return Objects.toStringHelper(this).add("action", this.action).add("entries", this.players).toString();
220
    }
221
222
    public static enum Action
223
    {
224
        ADD_PLAYER,
225
        UPDATE_GAME_MODE,
226
        UPDATE_LATENCY,
227
        UPDATE_DISPLAY_NAME,
228
        REMOVE_PLAYER;
229
    }
230
231
    public class AddPlayerData
232
    {
233
        private final int ping;
234
        private final WorldSettings.GameType gamemode;
235
        private final GameProfile profile;
236
        private final IChatComponent displayName;
237
238
        public AddPlayerData(GameProfile profile, int pingIn, WorldSettings.GameType gamemodeIn, IChatComponent displayNameIn)
239
        {
240
            this.profile = profile;
241
            this.ping = pingIn;
242
            this.gamemode = gamemodeIn;
243
            this.displayName = displayNameIn;
244
        }
245
246
        public GameProfile getProfile()
247
        {
248
            return this.profile;
249
        }
250
251
        public int getPing()
252
        {
253
            return this.ping;
254
        }
255
256
        public WorldSettings.GameType getGameMode()
257
        {
258
            return this.gamemode;
259
        }
260
261
        public IChatComponent getDisplayName()
262
        {
263
            return this.displayName;
264
        }
265
266
        public String toString()
267
        {
268
            return Objects.toStringHelper(this).add("latency", this.ping).add("gameMode", this.gamemode).add("profile", this.profile).add("displayName", this.displayName == null ? null : IChatComponent.Serializer.componentToJson(this.displayName)).toString();
269
        }
270
    }
271
}

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

Deep Dive

Role in the protocol

The tab list state machine: one VarInt action plus a list of per-player records. ADD_PLAYER (0) ships UUID, name, the skin property map, gamemode, ping and an optional display name; UPDATE_GAME_MODE (1) and UPDATE_LATENCY (2) carry a UUID plus one field; UPDATE_DISPLAY_NAME (3) a UUID plus an optional chat component; REMOVE_PLAYER (4) a bare UUID. ServerConfigurationManager broadcasts ADD on join, REMOVE on leave, and every 600 ticks it broadcasts UPDATE_LATENCY for the whole list, which is how ping reaches the tab GUI.

Vanilla handling

handlePlayerListItem branches per action and mutates the player info map: ADD builds a NetworkPlayerInfo from the AddPlayerData, UPDATE_LATENCY overwrites the ping field, UPDATE_DISPLAY_NAME swaps the display name, REMOVE drops the entry. The ADD path doubles as the skin pipeline: the textures property is consumed by the player renderer. Server side, the packet constructors snapshot each EntityPlayerMP's profile, ping, gamemode and tab display name into records.

Why clients touch it

Four modules across three clients. Rise 5.99 Denicker intercepts ADD_PLAYER, decodes the base64 textures property from the GameProfile and compares the embedded profileName against the displayed name to reveal nicked players, pairing results with S02PacketChat join lines. Rise 6.1.30 and 6.2.4 StaffDetector keep a hardcoded staff list, but the S38 handler is commented out in both builds, leaving only the PreMotion decay counter live. Sigma 4.11 AntiVanish reads UPDATE_LATENCY and REMOVE_PLAYER to catch vanished players, and FriendAlert notifies when an ADD_PLAYER name matches the friend list.

Exploit surface

The ADD_PLAYER payload is the richest unencrypted metadata stream in the protocol: the full GameProfile including signed skin properties, which Denicker turns into an identity oracle that nick plugins do not scrub. UPDATE_LATENCY is a ping heartbeat that enables vanish detection: a vanished player stops appearing, and AntiVanish also flags latency updates for UUIDs absent from the player info map. No anti-cheat polices the packet; the countermeasures are tab-list plugins that strip or re-sign properties.

Server-Side Handling

ServerConfigurationManager sends ADD to everyone when a player joins and REMOVE on quit; the joining player additionally receives ADD records for everyone already online. onTick broadcasts UPDATE_LATENCY for the whole list every 600 ticks. The channel is broadcast-only: the server never validates what the client does with the data, and there is no clientbound acknowledgment.

Protocol Analysis

The action is a VarInt enum. Record layout depends on action; the widest is ADD_PLAYER: UUID, name capped at 16 chars, VarInt property count, then per property name, value and optional signature strings with a boolean flag, then gamemode VarInt, ping VarInt and an optional chat component. Property strings cap at 32767 bytes. UPDATE_LATENCY entries are only UUID plus ping VarInt, which is why ping refreshes stay cheap.

Anti-Cheat Landscape

Not a detection surface; no anti-cheat measures tab list traffic. The realistic risks are social and structural: Denicker's un-nicking fails when servers strip profileName from the textures payload, and vanish alerts are defeated by networks that keep vanished players in the tab list, which is exactly why Sigma hard-disables AntiVanish on hypixel, hive and mineplex via a server-IP check.

implementation Implementation Cases

The tab list state machine and the most information-dense clientbound metadata channel: ADD_PLAYER carries full GameProfiles with signed skin properties. Four corpus modules live on it: Rise 5.99 Denicker decodes skin payloads to un-nick players, Rise 6.x StaffDetector carries a disabled S38 hook, and Sigma 4.11 AntiVanish and FriendAlert track the latency heartbeat and join records.

Denicker (Rise 5.99)

Reveal the real identity of nicked players by decoding the signed skin texture payload from ADD_PLAYER records.

On PacketReceiveEvent, an ADD_PLAYER S38 is read: the first AddPlayerData's GameProfile is taken, the textures property is base64-decoded into JSON, and the embedded profileName is compared with the displayed name. Mismatches are queued as realName=nickedName pairs; S02PacketChat join messages are then scanned on a background thread, and a matching nick triggers a notification plus a log4j chat rewrite when overlay support is on.

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

Vanilla hook: PacketReceiveEvent; state reset on WorldChangedEvent.
No anti-cheat involvement; the countermeasure is server-side property scrubbing. Servers that strip or re-sign the textures property defeat the decode, which is why the module only works on networks that leave profileName intact.
Variations: Rise 5.99 only; no other corpus client ships an S38-based denicker.
StaffDetector (Rise 6.2.4, Rise 6.1.30)

Detect staff on the server by matching tab list names against a hardcoded staff list, then auto-leave via /hub.

The module keeps a hardcoded comma-separated staff name list and a PreMotion counter that decays each tick. In both corpus builds the actual packet handling is commented out: the S38 ADD_PLAYER and S3EPacketTeams branches that would count staff sightings and send /hub at count 6 are dead code. Only the name list and the decay counter remain live.

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

Vanilla hook: PacketReceiveEvent (disabled), PreMotionEvent (counter decay).
No anti-cheat risk; the feature is a reconnaissance countermeasure. The hardcoded list is per-network and rots quickly, which is presumably why the hook was disabled in the shipped builds.
Variations: Rise 6.1.30 carries the same file under com/alan/clients/module/impl/exploit with the same commented-out S38 branch.
AntiVanish (Sigma 4.11)

Detect vanished players by watching UPDATE_LATENCY and REMOVE_PLAYER records that reference UUIDs absent from the tab list.

On EventPacket (incoming), UPDATE_LATENCY records are checked against mc.getNetHandler().getPlayerInfo(uuid): a latency update for a UUID with no player info entry is flagged as a vanished player and added to a watch list. On the update event, any watched UUID that later gains a player info entry is reported as un-vanished. A REMOVE_PLAYER branch prints the removed display name. A server-IP guard auto-disables on hypixel, hive and mineplex.

Source: Sigma 4.11, info/sigmaclient/module/impl/other/AntiVanish.java

Vanilla hook: EventPacket (incoming), EventUpdate (pre), EventRenderGui.
No anti-cheat risk; the module is pure tab list observation. Its practical weakness is structural: any server that keeps vanished players listed (Hypixel-style) defeats the oracle, which is why the module refuses to run there.
Variations: Sigma-only. Rise 6.x attempts the inverse (staff detection) with a name list; no other client watches the latency heartbeat.
FriendAlert (Sigma 4.11)

Notify when a friend joins by matching ADD_PLAYER profile names against the friend manager.

On incoming EventPacket, an ADD_PLAYER S38 is iterated and each AddPlayerData's profile name is checked with FriendManager.isFriend; a match posts a Friend Alert notification with the name. The module reads only the name field and ignores the skin properties.

Source: Sigma 4.11, info/sigmaclient/module/impl/other/FriendAlert.java

Vanilla hook: EventPacket (incoming).
No detection surface; join alerts are indistinguishable from passive tab list rendering to the server.
Variations: Sigma-only in the corpus; Rise 5.99's Denicker pairs ADD_PLAYER with S02 join messages instead of relying on the friend manager.
PacketReceiveEvent / incoming EventPacket is universal; Rise 6.x adds its component system on top of the same receive bus.
Sigma reads fields through the MCP accessors (func_179768_b, func_179767_a, field_179964_d); Rise 5.99 uses the same MCP names; Rise 6.x uses renamed accessors (getMatches-style). None of the four modules mutate the packet; all are read-only consumers.

anticheat Anti-Cheat Checks

The player-list packet manages tab list entries: add, remove, and updates of game mode, ping and display name. Server-side anticheats almost never validate it, and in this corpus only Grim consumes it: one listener rewrites game modes to hide spectators, and the entity replication listener stores the UUID-to-profile mappings that checks use to resolve entity identities. The keyword noise in the corpus is tab-complete and math-table code, not player-list handling.

Spectator hiding in the player list (Grim) (GrimAnticheat-Grim)

Prevent spectators on Grim's spectate system from leaking through the tab list with spectator game mode.

PacketHidePlayerInfo is a HIGHEST-priority send listener. For PLAYER_INFO (pre-1.19.3) it walks the player data list and, for entries that should be hidden, rewrites SPECTATOR game mode to SURVIVAL, cancels the packet when every entry was hidden and the action was a pure game-mode update, and marks the packet for re-encoding otherwise. The 1.19.3+ PLAYER_INFO_UPDATE path does the same per entry, removes the UPDATE_GAME_MODE action from a cancelled packet, and re-encodes modified entries.

Detects: Not a cheat detection: it hides the anticheat's own spectators from other players' tab lists, which also removes the game-mode tell that would expose staff spectating.

Source: GrimAnticheat-Grim, common/src/main/java/ac/grim/grimac/events/packets/PacketHidePlayerInfo.java

Variations: No other anticheat in the corpus touches player-list packets; the rest of the S38 corpus hits are tab-complete (C0B) or table-name keyword noise.
Player-list replication (Grim) (GrimAnticheat-Grim)

Record the UUID-to-profile mappings announced on the player list so entity and profile lookups in checks resolve correctly.

PacketEntityReplication wraps PLAYER_INFO and PLAYER_INFO_UPDATE sends and, transaction-sandwiched, puts ADD_PLAYER game profiles into compensatedEntities.profiles and removes them on REMOVE_PLAYER. The profile map feeds checks that need the game profile behind an entity id or uuid.

Detects: None directly; it is state replication that keeps the compensated entity model consistent with the tab list.

Source: GrimAnticheat-Grim, common/src/main/java/ac/grim/grimac/events/packets/PacketEntityReplication.java

Variations: No other anticheat in the corpus reads player-list packets; Grim's SpectateManager is the only consumer of the stored profiles besides the checks themselves.

Wiki Cross-Reference

Tab-list ping icons follow fixed thresholds: negative (unknown) ping shows the no-connection icon, under 150 ms shows 5 bars, under 300 shows 4 bars, under 600 shows 3 bars, under 1000 shows 2 bars, and anything slower shows 1 bar.

MCP 1.8.9 S38PacketPlayerListItem implements Packet dispatching to handlePlayerListItem; serde via readBoolean, readChatComponent, readEnumValue, readStringFromBuffer, etc..

1.8.9 callers: ItemInWorldManager.setGameType sends new S38PacketPlayerListItem (line 57) +1 more: https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/server/management/ItemInWorldManager.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 S38PacketPlayerListItem

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