0x3A S3APacketTabComplete
Server responds to C14PacketTabComplete with a list of matching commands/player names.
Published 2026-06-18 · Updated 2026-10-14
Fields
| Field | Type | Description |
|---|---|---|
| matches | String[] | Auto-complete suggestions |
Wire Encoding
| Field | Type | Notes |
|---|---|---|
| Count | VarInt | |
| Matches | String[] | Suggested completions |
MCP References
NetHandlerPlayClient.handleTabComplete()Handler Interface
INetHandlerPlayClientVanilla 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 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
Deobfuscated MCP 1.8.9 source of S3APacketTabComplete, fetched directly from Marcelektro/MavenMCP-1.8.9 (net/minecraft/network/play/server/S3APacketTabComplete.java) at build time and verified present.
Deep Dive
Role in the protocol
The server's answer to C14PacketTabComplete: a VarInt count followed by the matching command and player-name strings. The vanilla GUI feeds them into GuiChat.onAutocompleteResponse to cycle suggestions on Tab. Because Bukkit forks populate the server command registry from plugins, the response leaks plugin names as colon-prefixed commands (/plugin:subcommand), which is the entire basis of the plugin-enumeration features in the corpus.
Vanilla handling
NetHandlerPlayServer.processTabComplete asks the command dispatcher for matches and echoes them back as S3APacketTabComplete with no rate limit and no length guard beyond the request's own string cap. Client side, handleTabComplete dispatches on the main thread and, only when the current screen is a GuiChat, calls onAutocompleteResponse; any other screen means the payload is silently ignored, a detail modules must remember when they fire requests outside chat.
Why clients touch it
Five corpus features consume the response. Rise 5.99 Plugins sends C14 with '/' in Normal mode or '/a' through '/z' in Bypass mode, then parses every S3A response, splits on ':' and filters '/minecraft' to print the plugin list; Bypass defers the printout to onDisable. Sigma 4.11 PluginFinder is a command doing the same with a 20-second listen window, its own dedupe and a cancel of the event. Rise 6.1.30 and 6.2.4 Chat reimplements the chat screen and consumes S3A for autocomplete cycling: it stores the matches on receive, rotates through them on Tab, and fires C14 itself with the typed text and an optional targeted BlockPos. LiquidSense Dev's Plugins module fires a single C14 on enable and auto-disables after printing the sorted, deduped list. November Recode 2.0's PluginsCommand runs the same enumeration as a chat command and additionally regex-parses bare-word suggestions and accepts a custom completion seed.
Exploit surface
The enumeration trick is the exploit: a server that does not filter tab completion inventories its own plugins, which names the anti-cheat and its version for targeted research. Bypass modes blast up to 26 requests in one burst, which is a clean rate signal; servers that rate-limit C14 or strip plugin-prefixed commands from the registry kill both modes. The GUI dependency is the subtle constraint: S3A only reaches the vanilla autocomplete when a chat screen is open, so UI-less requesters must hold their own state.
Server-Side Handling
processTabComplete resolves matches from the server command registry and player list, then sends S3A. There is no server-side rate limit in vanilla; rate limiting lives in plugins. The response is a snapshot, one S3A per request in order, and nothing invalidates a previous response, which is why burst enumeration is reliable.
Protocol Analysis
VarInt count, then count strings, each VarInt-length-prefixed UTF-8, bounded by the 32767-byte frame limit per string. The request may carry an optional targeted BlockPos that enables coordinate-aware completions, but the response carries no position data back. Results arrive in registry order, which is why cycling modules rotate through the array instead of assuming alphabetical order.
Anti-Cheat Landscape
Anti-cheats do not flag S3A; they flag the request side. A burst of 26 C14 packets inside one tick is a clean rate signal, which makes Rise 5.99's Normal mode (one request, one parse) the safe variant and Bypass the risky one. Servers defeat enumeration server-side by filtering S3A responses or hiding plugin-prefixed commands, both invisible to the client.
implementation Implementation Cases
The tab-completion response channel and the backbone of plugin enumeration: Bukkit leaks plugin names as colon-prefixed commands. Five features across the corpus consume it: Rise 5.99 Plugins (Normal and Bypass modes), Sigma 4.11's PluginFinder command, the Rise 6.x Chat module, LiquidSense Dev's Plugins module, and November Recode 2.0's PluginsCommand.
Enumerate server plugins by parsing the colon-prefixed commands leaked in tab-completion responses.
Normal mode sends one C14PacketTabComplete("/") on enable and parses the S3A response immediately, splitting each command on ':' and filtering the '/minecraft' namespace; results print to chat as they arrive and the module toggles off. Bypass mode fires 26 requests ('/a' through '/z') and defers the deduped printout to onDisable. Timeouts (5s Normal, 2.5s Bypass) disable the module when the server returns nothing.
// ===== FILE: Rise 5.99, dev/rise/module/impl/other/Plugins.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.Rise;
import dev.rise.event.impl.motion.PreMotionEvent;
import dev.rise.event.impl.packet.PacketReceiveEvent;
import dev.rise.module.Module;
import dev.rise.module.api.ModuleInfo;
import dev.rise.module.enums.Category;
import dev.rise.setting.impl.ModeSetting;
import dev.rise.util.math.TimeUtil;
import dev.rise.util.player.PacketUtil;
import net.minecraft.network.play.client.C14PacketTabComplete;
import net.minecraft.network.play.server.S3APacketTabComplete;
import java.util.ArrayList;
@ModuleInfo(name = "Plugins", description = "Displays what plugins a server has in chat", category = Category.OTHER)
public final class Plugins extends Module {
private final ModeSetting mode = new ModeSetting("Mode", this, "Normal", "Normal", "Bypass");
private final ArrayList<String> cachedPlugins = new ArrayList<>();
private final TimeUtil timer = new TimeUtil();
@Override
public void onPreMotion(final PreMotionEvent event) {
switch (mode.getMode()) {
case "Normal":
if (timer.hasReached(5000L)) {
this.registerNotification("Failed to detect any plugins.");
this.toggleModule();
}
break;
case "Bypass":
if (timer.hasReached(2500L))
this.toggleModule();
break;
}
}
@Override
public void onPacketReceive(final PacketReceiveEvent event) {
if (event.getPacket() instanceof S3APacketTabComplete) {
switch (mode.getMode()) {
case "Normal":
for (final String command : ((S3APacketTabComplete) event.getPacket()).func_149630_c()) {
final String[] pluginCommand = command.split(":");
if (pluginCommand.length > 1 && !pluginCommand[0].startsWith("/minecraft")) {
final String plugin = pluginCommand[0].replaceAll("/", "");
if (!cachedPlugins.contains("Plugins:")) {
Rise.addChatMessage("Plugins:");
cachedPlugins.add("Plugins:");
}
if (!cachedPlugins.contains(plugin)) {
cachedPlugins.add(plugin);
Rise.addChatMessage(plugin);
}
}
}
if (cachedPlugins.isEmpty())
this.registerNotification("No plugins found.");
this.toggleModule();
break;
case "Bypass":
for (final String command : ((S3APacketTabComplete) event.getPacket()).func_149630_c()) {
final String[] pluginCommand = command.split(":");
if (pluginCommand.length > 1 && !pluginCommand[0].startsWith("/minecraft")) {
final String plugin = pluginCommand[0].replaceAll("/", "");
if (!cachedPlugins.contains(plugin))
cachedPlugins.add(plugin);
}
}
break;
}
}
}
@Override
protected void onEnable() {
switch (mode.getMode()) {
case "Normal":
PacketUtil.sendPacket(new C14PacketTabComplete("/"));
break;
case "Bypass":
final String alphabet = "abcdefghijklmnopqrstuvwxyz";
for (int i = 0; i < alphabet.length(); i++)
PacketUtil.sendPacket(new C14PacketTabComplete("/" + alphabet.charAt(i)));
break;
}
cachedPlugins.clear();
timer.reset();
}
@Override
protected void onDisable() {
if (mode.is("Bypass") && !cachedPlugins.isEmpty()) {
Rise.addChatMessage("Plugins:");
for (final String name : cachedPlugins)
Rise.addChatMessage(name);
}
}
}
// NOTE (AI): Normal mode sends one C14 for '/' and prints results immediately; Bypass sends 26 requests ('/a' to '/z') and defers the printout to onDisable. The colon split is the Bukkit command convention /plugin:subcommand; '/minecraft' is filtered as the vanilla namespace. The 5s Normal and 2.5s Bypass timeouts toggle the module off when the server returns nothing.
Replacement chat screen with custom autocomplete: S3A responses feed the Tab cycling and the module sends C14 requests itself.
On PacketReceiveEvent, every S3A is stored into a matches list and each match is printed to chat. On the Tab key, if matches is empty the module sends C14PacketTabComplete with the typed text and an optional targeted BlockPos (the looked-at block), then cycles the stored matches on subsequent Tab presses. The dot-prefix guard skips requests for client command input, and the matches list is nulled when the input closes.
// ===== FILE: Rise 6.2.4, Client-release2/Client/src/main/java/com/alan/clients/module/impl/render/chat/Chat.java =====
package com.alan.clients.module.impl.render.chat;
import com.alan.clients.event.Listener;
import com.alan.clients.event.annotations.EventLink;
import com.alan.clients.event.impl.input.GuiKeyBoardEvent;
import com.alan.clients.event.impl.input.KeyboardInputEvent;
import com.alan.clients.event.impl.packet.PacketReceiveEvent;
import com.alan.clients.event.impl.render.Render2DEvent;
import com.alan.clients.font.Fonts;
import com.alan.clients.font.Weight;
import com.alan.clients.module.Module;
import com.alan.clients.module.api.Category;
import com.alan.clients.module.api.ModuleInfo;
import com.alan.clients.module.impl.render.Interface;
import com.alan.clients.ui.theme.Themes;
import com.alan.clients.util.EvictingList;
import com.alan.clients.util.MouseUtil;
import com.alan.clients.util.animation.Animation;
import com.alan.clients.util.animation.Easing;
import com.alan.clients.util.chat.ChatUtil;
import com.alan.clients.util.font.Font;
import com.alan.clients.util.gui.ScrollUtil;
import com.alan.clients.util.gui.textbox.TextAlign;
import com.alan.clients.util.gui.textbox.TextBox;
import com.alan.clients.util.render.ColorUtil;
import com.alan.clients.util.render.RenderUtil;
import com.alan.clients.util.vector.Vector2d;
import com.alan.clients.value.impl.BooleanValue;
import com.alan.clients.value.impl.DragValue;
import com.alan.clients.value.impl.NumberValue;
import lombok.Getter;
import net.minecraft.client.gui.ChatLine;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.network.Packet;
import net.minecraft.network.play.client.C14PacketTabComplete;
import net.minecraft.network.play.server.S3APacketTabComplete;
import net.minecraft.util.BlockPos;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.IChatComponent;
import net.minecraft.util.MovingObjectPosition;
import net.optifine.gui.GuiChatOF;
import org.lwjgl.input.Mouse;
import org.lwjgl.opengl.GL11;
import rip.vantage.commons.util.time.StopWatch;
import java.awt.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import static com.alan.clients.layer.Layers.*;
import static com.alan.clients.util.animation.Easing.*;
@Getter
@ModuleInfo(aliases = {"module.render.chat.name"}, description = "module.render.chat.description", category = Category.RENDER, autoEnabled = true, allowDisable = false)
public final class Chat extends Module {
private final NumberValue openHeight = new NumberValue("Open Height", this, 130, 0, 200, 1);
private final NumberValue widthChat = new NumberValue("Width", this, 320, 40, 320, 1);
private final NumberValue closedHeight = new NumberValue("Max Closed Height", this, 130, 0, 500, 1);
private final NumberValue disappear = new NumberValue("Message disappearance speed", this, 5000, 0, 5000, 1);
private final BooleanValue background = new BooleanValue("Background", this, true);
private final BooleanValue hidePlayers = new BooleanValue("Hide Player Source Messages", this, false);
private final DragValue structure = new DragValue("", this, new Vector2d(200, 200), false, true);
private final Animation animation = new Animation(Easing.EASE_OUT_EXPO, 500);
private final Animation inputAnimation = new Animation(Easing.EASE_OUT_ELASTIC, 400);
private final Animation inputOpacity = new Animation(LINEAR, 400);
private final Animation scaleAnimation = new Animation(EASE_OUT_EXPO, 500);
private final ScrollUtil scroll = new ScrollUtil();
private final Font chatFont = mc.fontRendererObj;
private final Font inputFont = mc.fontRendererObj;
private TextBox textField = new TextBox(new Vector2d(0, 0), inputFont, Color.WHITE, TextAlign.LEFT, "", 1000f, "abcdefghijklmnopqrstuvwxyz1234567890!@#$%^&*()-_+=[{]};:.>,</?| ' \" ` ~");
private int lineCount, recentLineCount;
private float lineHeight;
public boolean clicked, open;
private StopWatch stopWatch = new StopWatch();
private EvictingList<String> recentMessages = new EvictingList<>(20);
private ArrayList<String> matches;
private Interface interfaceModule;
public Chat() {
mc.ingameGUI.persistantChatGUI = new RiseGuiNewChat(mc);
}
@EventLink
public final Listener<KeyboardInputEvent> onKey = event -> {
if (event.getCharacter() == '/' || event.getCharacter() == '.') {
textField.setSelected(true);
textField.key(event.getCharacter(), event.getKeyCode());
}
};
@EventLink
public final Listener<PacketReceiveEvent> onPacketReceive = event -> {
Packet<?> packet = event.getPacket();
if (packet instanceof S3APacketTabComplete) {
matches = new ArrayList<>(Arrays.asList(((S3APacketTabComplete) packet).getMatches()));
for (String match : matches) ChatUtil.display(match);
}
};
@EventLink
public final Listener<GuiKeyBoardEvent> onGuiKey = event -> {
switch (event.getKeyCode()) {
// Enter
case 28:
if (textField.getText().isEmpty()) return;
mc.thePlayer.sendChatMessage(textField.getText());
recentMessages.remove(textField.getText());
recentMessages.add(textField.getText());
textField.text = "";
mc.displayGuiScreen(null);
break;
// Down arrow
case 200:
List<String> recentMessages = new ArrayList<>(this.recentMessages);
Collections.reverse(recentMessages);
int index = recentMessages.indexOf(textField.text);
if (recentMessages.size() > index + 1) {
textField.text = recentMessages.get(index + 1);
textField.cursor = textField.text.length();
}
break;
// Up Arrow
case 208:
List<String> recentMessages2 = new ArrayList<>(this.recentMessages);
Collections.reverse(recentMessages2);
int indexDown = recentMessages2.indexOf(textField.text);
if (indexDown > 0) {
textField.text = recentMessages2.get(indexDown - 1);
textField.cursor = textField.text.length();
}
break;
// Tab
case 15:
if (matches == null) {
String text = getTextField().getText();
if (!text.startsWith(".") && !text.isEmpty()) { // !p_146405_1_.startsWith(".") added to prevent autocomplete of commands
BlockPos blockpos = null;
if (this.mc.objectMouseOver != null && this.mc.objectMouseOver.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK) {
blockpos = this.mc.objectMouseOver.getBlockPos();
}
this.mc.thePlayer.sendQueue.addToSendQueue(new C14PacketTabComplete(text, blockpos));
}
matches = new ArrayList<>();
} else if (!matches.isEmpty()) {
String[] parts = textField.getText().split(" ");
int indexof = matches.indexOf(parts[parts.length - 1]);
parts[parts.length - 1] = matches.get((matches.size() > indexof + 1) ? indexof + 1 : 0);
textField.text = String.join(" ", parts);
textField.cursor = textField.getText().length();
}
break;
}
textField.selected = open;
textField.key(event.getCharacter(), event.getKeyCode());
};
@EventLink
public final Listener<Render2DEvent> onRender2D = event -> {
this.renderChat();
this.renderInput();
};
public void renderChat() {
getTheme();
if (interfaceModule == null) interfaceModule = getModule(Interface.class);
boolean rise = interfaceModule.getInformationType().getValue().getName().equals("Rise");
open = mc.currentScreen instanceof GuiChatOF;
lineHeight = chatFont.height();
float expandedHeight = Math.min((open ? openHeight : closedHeight).getValue().intValue(), lineHeight * lineCount + (lineCount == 0 ? 0 : 7));
scaleAnimation.run(Math.min(expandedHeight, (lineHeight * (open ? expandedHeight : recentLineCount)) + (lineHeight * (open ? expandedHeight : recentLineCount) == 0 ? 0 : 7)));
structure.scale = new Vector2d(widthChat.getValue().doubleValue(), scaleAnimation.getValue());
structure.position = new Vector2d(getTheme().getPadding(), mc.scaledResolution.getScaledHeight() - 10 - 20 - structure.scale.y);
Vector2d position = new Vector2d(structure.position.x + 5, structure.position.y + structure.scale.y - 1.5);
Vector2d startPosition = new Vector2d(position.getX(), position.getY());
List<ChatLine> lines = new ArrayList<>(mc.ingameGUI.getChatGUI().drawnChatLines);
double round = Math.min(structure.scale.y / 5f, 6);
if (background.getValue()) {
if (rise) {
getLayer(REGULAR, 1).add(() -> RenderUtil.roundedRectangle(structure.position.x, structure.position.y, structure.scale.x, structure.scale.y, round, Themes.getBackgroundShade()));
getLayer(BLOOM).add(() -> RenderUtil.roundedRectangle(structure.position.x + 1, structure.position.y + 1, structure.scale.x - 2, structure.scale.y - 2, round, getTheme().getDropShadow()));
getLayer(BLUR).add(() -> RenderUtil.roundedRectangle(structure.position.x, structure.position.y, structure.scale.x, structure.scale.y, round, Color.BLACK));
} else {
getLayer(REGULAR, 1).add(() -> RenderUtil.rectangle(structure.position.x, structure.position.y, structure.scale.x, structure.scale.y, new Color(0, 0, 0, 130)));
}
}
// Chat
getLayer(REGULAR, 1).add(() -> {
GL11.glEnable(GL11.GL_SCISSOR_TEST);
RenderUtil.scissor(structure.position.x, structure.position.y, structure.scale.x, structure.scale.y);
animation.run(0);
position.setY(position.getY() + animation.getValue() - scroll.getScroll());
scroll.onRender(open);
scroll.setReverse(true);
scroll.setMax((-lineHeight * lines.size()) + structure.scale.y - 6);
if (!open) scroll.setTarget(0);
if (lines.size() > 150) {
List<ChatLine> linesPointer = mc.ingameGUI.getChatGUI().drawnChatLines;
while (linesPointer.size() > 100) {
linesPointer.remove(linesPointer.getLast());
}
}
update:
{
if (lineCount < lines.size()) {
if (hidePlayers.getValue()) {
mc.ingameGUI.getChatGUI().drawnChatLines.removeIf(line -> line.getChatComponent().getFormattedText().contains(":"));
if (lineCount >= mc.ingameGUI.getChatGUI().drawnChatLines.size()) {
break update;
}
}
animation.setValue(animation.getValue() + ((lines.size() - lineCount) * lineHeight));
animation.run(animation.getValue());
recentLineCount += lines.size() - lineCount;
recentLineCount = (int) Math.max(Math.min((closedHeight.getValue().intValue() / lineHeight), recentLineCount), 0);
}
}
lineCount = lines.size();
if (stopWatch.finished(disappear.getValue().intValue()) || recentLineCount == 0) {
stopWatch.reset();
recentLineCount = Math.max(0, recentLineCount - 1);
}
IChatComponent chatComponent2 = null;
// Rendering chat
for (ChatLine chatLine : lines) {
position.setX(startPosition.getX());
position.setY(position.getY() - lineHeight);
if (position.y < structure.position.y - lineHeight + (open ? 0 : 6) || position.y > structure.position.y + structure.scale.y) {
continue;
}
for (IChatComponent chatComponent : chatLine.getChatComponent()) {
String text = chatComponent.getUnformattedTextForChat();
EnumChatFormatting color = chatComponent.getChatStyle().getColor() == null ? EnumChatFormatting.RESET : chatComponent.getChatStyle().getColor();
double componentWidth = chatFont.drawWithShadow(color + text, position.getX(), position.getY(), 16777215) - position.x;
// Hover & Click
if (open && MouseUtil.isHovered(position.x, position.y, componentWidth, lineHeight)) {
chatComponent2 = chatComponent;
}
position.x += componentWidth;
}
}
if (chatComponent2 != null) {
Vector2d mouse = MouseUtil.mouse();
mc.currentScreen.handleComponentHover(chatComponent2, (int) mouse.getX(), (int) mouse.getY());
if (!clicked && Mouse.isButtonDown(0)) mc.currentScreen.handleComponentClick(chatComponent2);
clicked = Mouse.isButtonDown(0);
}
// Scrollbar
if (background.getValue()) {
scroll.renderScrollBar(new Vector2d(structure.position.x + structure.scale.x - 5, structure.position.y + 5), structure.scale.y - 10);
}
// Scissoring
GL11.glDisable(GL11.GL_SCISSOR_TEST);
});
}
public void renderInput() {
getTheme();
boolean rise = interfaceModule.getInformationType().getValue().getName().equals("Rise");
// ChatBox
if (rise) {
inputAnimation.setDuration(!open ? 300 : 850);
inputAnimation.setEasing(!open ? EASE_IN_EXPO : EASE_OUT_ELASTIC);
} else {
inputAnimation.setDuration(0);
inputAnimation.setEasing(!open ? EASE_IN_EXPO : EASE_OUT_ELASTIC);
}
inputAnimation.run(!open ? 0 : 1);
inputOpacity.run(open ? 255 : 0);
double scale = (inputAnimation.getValue() > 1) ? (1 + (inputAnimation.getValue() - 1) * 0.4) : inputAnimation.getValue();
textField.setEmptyText("");
if (inputAnimation.getValue() <= 0) return;
Vector2d inputPosition = new Vector2d(getTheme().getPadding(), mc.scaledResolution.getScaledHeight() - getTheme().getPadding() - Fonts.MAIN.get(20, Weight.REGULAR).height() - 3);
Vector2d inputScale = new Vector2d(structure.scale.x, inputFont.height() + 7.5);
Runnable glOpen = () -> {
GlStateManager.pushMatrix();
GlStateManager.translate((inputPosition.x + inputScale.x / 2) * (1 - scale), (inputPosition.y + inputScale.y / 2) * (1 - scale), 0);
GlStateManager.scale(scale, scale, 0);
};
if (rise) {
getLayer(REGULAR, 1).add(() -> {
glOpen.run();
RenderUtil.roundedRectangle(inputPosition.x, inputPosition.y, inputScale.x, inputScale.y, 6, ColorUtil.withAlpha(Themes.getBackgroundShade(), Math.min((int) inputOpacity.getValue(), getTheme().getBackgroundShade().getAlpha())));
GlStateManager.popMatrix();
});
getLayer(BLOOM).add(() -> {
glOpen.run();
RenderUtil.roundedRectangle(inputPosition.x, inputPosition.y, inputScale.x, inputScale.y, 6.5, getTheme().getDropShadow());
GlStateManager.popMatrix();
});
getLayer(BLUR).add(() -> {
glOpen.run();
RenderUtil.roundedRectangle(inputPosition.x, inputPosition.y, inputScale.x, inputScale.y, 6, Color.BLACK);
GlStateManager.popMatrix();
});
} else {
getLayer(REGULAR, 1).add(() -> {
glOpen.run();
RenderUtil.rectangle(inputPosition.x, inputPosition.y, inputScale.x, inputScale.y, new Color(0, 0, 0, Math.min((int) inputOpacity.getValue(), 130)));
GlStateManager.popMatrix();
});
}
textField.setColor(ColorUtil.withAlpha(Color.WHITE, (int) inputOpacity.getValue()));
textField.setFontRenderer(inputFont);
textField.setPosition(new Vector2d(getTheme().getPadding() + 5, mc.scaledResolution.getScaledHeight() - inputFont.height() - getTheme().getPadding()));
getLayer(REGULAR, 1).add(() -> {
glOpen.run();
textField.draw();
GlStateManager.popMatrix();
if (!open) textField.text = "";
});
if (!open) {
textField.text = "";
matches = null;
}
}
}
// NOTE (AI): The chat module reimplements autocomplete: it stores S3A matches on receive, cycles them on Tab, and fires C14 itself with an optional targeted BlockPos. Note the dot-prefix guard: client commands starting with '.' never trigger a C14, matching the vanilla behavior of skipping autocomplete for command-prefixed client input. The matches list is nulled when the input closes.
Command-driven plugin enumeration: send one C14 for '/', listen for a single S3A, print the deduped plugin list.
fire() resets a timer, registers the command object with the event system and sends C14PacketTabComplete("/"). The event handler waits for S3A, splits each command on ':', dedupes plugin names, filters 'minecraft' and 'bukkit', prints the list, unregisters and cancels the event. A 20-second timer self-unregisters if the server never answers.
// ===== FILE: Sigma 4.11, info/sigmaclient/management/command/impl/PluginFinder.java =====
package info.sigmaclient.management.command.impl;
import info.sigmaclient.event.Event;
import info.sigmaclient.event.impl.EventPacket;
import info.sigmaclient.util.Timer;
import info.sigmaclient.event.EventSystem;
import info.sigmaclient.event.RegisterEvent;
import info.sigmaclient.management.command.Command;
import info.sigmaclient.util.NetUtil;
import info.sigmaclient.util.misc.ChatUtil;
import net.minecraft.network.play.client.C14PacketTabComplete;
import net.minecraft.network.play.server.S3APacketTabComplete;
/**
* Created by Arithmo on 5/7/2017 at 3:12 PM.
*/
public class PluginFinder extends Command {
public PluginFinder(String[] names, String description) {
super(names, description);
}
private Timer timer = new Timer();
@Override
public void fire(String[] args) {
try {
timer.reset();
EventSystem.register(this);
NetUtil.sendPacket(new C14PacketTabComplete("/"));
ChatUtil.printChat(chatPrefix + "Listening for a S3APacketTabComplete for 20s!");
} catch (Exception ceankoFucksOff) {
ceankoFucksOff.printStackTrace();
}
}
@RegisterEvent(events = {EventPacket.class})
public void onEvent(Event event) {
try {
EventPacket ep = (EventPacket) event;
if (ep.getPacket() instanceof S3APacketTabComplete) {
S3APacketTabComplete packet = (S3APacketTabComplete) ep.getPacket();
String[] commands = packet.func_149630_c();
String message = "";
int size = 0;
for (String command : commands) {
String pluginName = command.split(":")[0].substring(1);
if (!message.contains(pluginName) && command.contains(":") && !pluginName.equalsIgnoreCase("minecraft") && !pluginName.equalsIgnoreCase("bukkit")) {
size++;
if (message.isEmpty()) {
message += pluginName;
} else {
message += "\2478, \247a" + pluginName;
}
}
}
if (!message.isEmpty()) {
ChatUtil.printChat(chatPrefix + "\2477Plugins (\247f" + size + "\2477): \247a " + message + "\2477.");
} else {
ChatUtil.printChat(chatPrefix + "Plugins: none.");
}
EventSystem.unregister(this);
event.setCancelled(true);
}
if (timer.delay(20000)) {
EventSystem.unregister(this);
ChatUtil.printChat(chatPrefix + "Stopped listening for an S3APacketTabComplete! Took to long (20s)!");
}
} catch (Exception ceankoFucksOff) {
ceankoFucksOff.printStackTrace();
}
}
@Override
public String getUsage() {
return "pluginfinder";
}
}
// NOTE (AI): A command rather than a module: it registers itself with the event system for one S3A, prints the deduped plugin list, unregisters and cancels the event. The 20s timer self-unregisters if the server never answers. The dedupe key is the plugin name before the colon, filtering 'minecraft' and 'bukkit'.
Enumerate server plugins from a single tab-completion response, print the deduped list and turn the module off.
onEnable sends one C14PacketTabComplete("/") through mc.getNetHandler().addToSendQueue and resets a TickTimer; onUpdate disables the module with a timeout chat message after 20 ticks if the server never answers. The PacketEvent handler catches S3A, splits every command on ':', strips the leading '/', dedupes into a list, sorts it and prints count plus names via ClientUtils.displayChatMessage, then setState(false).
// ===== FILE: LiquidSense Dev, net/ccbluex/liquidbounce/features/module/modules/exploit/Plugins.java =====
/*
* LiquidBounce Hacked Client
* A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge.
* https://github.com/CCBlueX/LiquidBounce/
*/
package net.ccbluex.liquidbounce.features.module.modules.exploit;
import joptsimple.internal.Strings;
import net.ccbluex.liquidbounce.event.EventTarget;
import net.ccbluex.liquidbounce.event.PacketEvent;
import net.ccbluex.liquidbounce.event.UpdateEvent;
import net.ccbluex.liquidbounce.features.module.Module;
import net.ccbluex.liquidbounce.features.module.ModuleCategory;
import net.ccbluex.liquidbounce.features.module.ModuleInfo;
import net.ccbluex.liquidbounce.utils.ClientUtils;
import net.ccbluex.liquidbounce.utils.timer.TickTimer;
import net.minecraft.network.play.client.C14PacketTabComplete;
import net.minecraft.network.play.server.S3APacketTabComplete;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
@ModuleInfo(name = "Plugins", description = "Allows you to see which plugins the server is using.", category = ModuleCategory.EXPLOIT)
public class Plugins extends Module {
private final TickTimer tickTimer = new TickTimer();
@Override
public void onEnable() {
if(mc.thePlayer == null)
return;
mc.getNetHandler().addToSendQueue(new C14PacketTabComplete("/"));
tickTimer.reset();
}
@EventTarget
public void onUpdate(UpdateEvent event) {
tickTimer.update();
if(tickTimer.hasTimePassed(20)) {
ClientUtils.displayChatMessage("§cPlugins check timed out...");
tickTimer.reset();
setState(false);
}
}
@EventTarget
public void onPacket(PacketEvent event) {
if(event.getPacket() instanceof S3APacketTabComplete) {
final S3APacketTabComplete s3APacketTabComplete = (S3APacketTabComplete) event.getPacket();
final List<String> plugins = new ArrayList<>();
final String[] commands = s3APacketTabComplete.func_149630_c();
for(final String command1 : commands) {
final String[] command = command1.split(":");
if(command.length > 1) {
final String pluginName = command[0].replace("/", "");
if(!plugins.contains(pluginName))
plugins.add(pluginName);
}
}
Collections.sort(plugins);
if(!plugins.isEmpty())
ClientUtils.displayChatMessage("§aPlugins §7(§8" + plugins.size() + "§7): §c" + Strings.join(plugins.toArray(new String[0]), "§7, §c"));
else
ClientUtils.displayChatMessage("§cNo plugins found.");
setState(false);
tickTimer.reset();
}
}
}
// NOTE (AI): LiquidBounce's Plugins module: one-shot enumeration with a 20-tick timeout. The tick counter is reset on both enable and after a successful parse, and setState(false) is called from inside the packet handler, which is legal here because the module toggles itself off rather than mutating the event. The split on ':' with a length check is the standard Bukkit plugin leak; the sort is the only polish over Rise 5.99's raw print.
Command-driven plugin enumeration: dispatch fires one C14 with a custom completion seed and a subscribed packet listener parses the S3A response.
dispatch builds the seed string ('/' plus joined args, or '/' alone), resets a 10-second timeout timer, sets listening and sends C14PacketTabComplete through mc.thePlayer.sendQueue.addToSendQueue. The EventPacket.In listener returns while listening is false, aborts with a chat message after 10 seconds, then on S3A splits colon-containing suggestions on ':', strips whitespace and the '/' and filters 'minecraft'; non-colon suggestions are matched against a [A-Z0-9]\\w+ regex and added when they do not start with '/'. Results print through Printer as a joined, deduped list.
// ===== FILE: November Recode 2.0, feature/command/impl/PluginsCommand.java =====
/* November.lol © 2023 */
package lol.november.feature.command.impl;
import java.util.HashSet;
import java.util.Set;
import java.util.regex.Pattern;
import lol.november.November;
import lol.november.feature.command.Command;
import lol.november.feature.command.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 lol.november.utility.math.timer.Timer;
import net.minecraft.network.play.client.C14PacketTabComplete;
import net.minecraft.network.play.server.S3APacketTabComplete;
/**
* @author Gavin
* @since 2.0.0
*/
@Register(
aliases = { "plugins", "serverplugins" },
description = "Allows you to see the plugins a server is using",
syntax = "<custom command>"
)
public class PluginsCommand extends Command {
private static final Pattern PLUGIN_REGEX = Pattern.compile("[A-Z0-9]\\w+");
private final Timer timeoutTimer = new Timer();
private boolean listening;
public PluginsCommand() {
November.bus().subscribe(this);
}
@Subscribe
private final Listener<EventPacket.In> packetIn = event -> {
if (!listening) return;
if (timeoutTimer.passed(10_000L)) {
Printer.print("Server took too long to respond with a tab complete");
listening = false;
return;
}
if (event.get() instanceof S3APacketTabComplete packet) {
String[] suggestions = packet.func_149630_c();
listening = false;
if (suggestions.length == 0) {
Printer.print("This server has no visible plugins");
return;
}
Set<String> plugins = new HashSet<>();
for (String result : suggestions) {
if (result.contains(":")) {
String[] split = result.split(":");
String pluginName = split[0].replaceAll("\\s*", "").replace("/", "");
if (!pluginName.isEmpty() && !pluginName.equals("minecraft")) {
plugins.add(pluginName);
}
} else {
if (
result.matches(PLUGIN_REGEX.pattern()) && !result.startsWith("/")
) {
plugins.add(result);
}
}
}
if (plugins.isEmpty()) {
Printer.print("No plugins were able to be parsed");
return;
}
Printer.print("There was &9" + plugins.size() + "&7 found:");
Printer.print(String.join(", ", plugins));
}
};
@Override
public void dispatch(String[] args) throws Exception {
String value = "/";
if (args.length != 0) {
value += String.join(" ", args);
}
timeoutTimer.reset();
listening = true;
mc.thePlayer.sendQueue.addToSendQueue(new C14PacketTabComplete(value));
}
}
// NOTE (AI): November Recode 2.0's command form of the same trick. The PLUGIN_REGEX fallback is the interesting part: servers that strip plugin-prefixed commands still leak bare-word names, so the command matches capital-letter tokens that do not start with '/'. The 10-second timeout and the listening flag make it a one-shot listener, and the custom seed (syntax '<custom command>') lets the user probe a specific command tree instead of only the root.
anticheat Anti-Cheat Checks
S3A is the tab-completion response channel, and the flagging half of the domain runs on the request side: Grim's ChatA and CrashH and BetterAnticheat's ImpossibleCompletionCheck read the inbound WrapperPlayClientTabComplete (C14) and are documented on that packet's page. Only Intave consumes the outbound response, and both consumers are suggestion filters rather than flaggers: CommandFilter strips Intave's own commands out of the completion list and VanishFilter removes hidden players' names. The rest of the corpus is plumbing and noise: FlopAC's WrappedInTabComplete and WrappedOutTabComplete wrappers, Artemis' PacketRepository entry with the GPacketPlayServerTabComplete wrapper, Negativity's TAB_COMPLETE constants, SafeguardAC's compiled-only TabComplete check, and Bukkit TabCompleter implementations in every anticheat's own command system.
Keeps Intave's own commands out of tab-complete responses so players without the intave.command permission cannot discover them by pressing Tab.
Subscribes to TAB_COMPLETE_OUT (S3A) and reads the response's string array. For players without the intave.command permission it rebuilds the array, dropping every suggestion that contains /intave or /iac, and writes the filtered array back into the packet only when something was removed. The same filter's inbound method rewrites /iac and /intave chat and tab-complete requests into a forwarder command; that half runs on C14 and is documented on that page.
// ===== FILE: intave-intave, src/main/java/de/jpx3/intave/module/filter/CommandFilter.java =====
package de.jpx3.intave.module.filter;
import com.comphenix.protocol.events.PacketContainer;
import com.comphenix.protocol.events.PacketEvent;
import com.google.common.collect.Lists;
import de.jpx3.intave.IntavePlugin;
import de.jpx3.intave.module.linker.packet.PacketSubscription;
import de.jpx3.intave.user.permission.BukkitPermissionCheck;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.entity.Player;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import static de.jpx3.intave.module.linker.packet.PacketId.Client.CHAT_IN;
import static de.jpx3.intave.module.linker.packet.PacketId.Client.TAB_COMPLETE_IN;
import static de.jpx3.intave.module.linker.packet.PacketId.Server.TAB_COMPLETE_OUT;
public final class CommandFilter extends Filter {
private final boolean separateEnable;
private final boolean disabled;
private final Map<String, String> redirects = new HashMap<>();
public CommandFilter(IntavePlugin plugin) {
super("command");
separateEnable = plugin.settings().getBoolean("command.hide", true);
disabled = plugin.settings().getBoolean("command.fix-tab-kicks", false);
ConfigurationSection reroute = plugin.settings().getConfigurationSection("command.reroute");
if (reroute != null) {
reroute.getKeys(false).forEach(key -> redirects.put(key, plugin.settings().getString("command.reroute." + key)));
}
}
@PacketSubscription(
packetsIn = {
CHAT_IN, TAB_COMPLETE_IN
}
)
public void receiveChatPacket(PacketEvent event) {
Player player = event.getPlayer();
String message = event.getPacket().getStrings().getValues().get(0);
String trimmedMessage = message.trim().toLowerCase();
for (Map.Entry<String, String> stringStringEntry : redirects.entrySet()) {
if (trimmedMessage.startsWith(stringStringEntry.getKey())) {
// remove the command and replace it with the redirect without regex
String redirect = stringStringEntry.getValue();
if (redirect.toLowerCase().contains("root")) {
continue;
}
trimmedMessage = redirect + trimmedMessage.substring(stringStringEntry.getKey().length());
event.getPacket().getStrings().writeSafely(0, trimmedMessage);
trimmedMessage = trimmedMessage.trim().toLowerCase();
}
}
boolean permitted = BukkitPermissionCheck.permissionCheck(player, "intave.command");
if ((trimmedMessage.startsWith("/iac") || trimmedMessage.startsWith("/intave")) && !permitted) {
event.getPacket().getStrings().writeSafely(0, "/intavecommandforward");
}
}
// @PacketSubscription(
//// engine = Engine.ASYNC_INTERNAL,
// packetsOut = {
// COMMANDS
// }
// )
// public void receiveCommands(PacketEvent event) {
// Player player = event.getPlayer();
// PacketContainer packet = event.getPacket();
// StructureModifier<RootCommandNode> rootModifier = packet.getSpecificModifier(RootCommandNode.class);
// RootCommandNode<?> rootCommandNode = rootModifier.readSafely(0);
//// player.sendMessage("Removing " + rootCommandNode.getChildren());
//// for (CommandNode<?> child : rootCommandNode.getChildren()) {
//// System.out.println(child.getName() + " -> " + child.getUsageText());
//// }
// rootCommandNode.removeCommand("iac");
// rootCommandNode.removeCommand("intave:iac");
// rootCommandNode.removeCommand("intave");
// rootCommandNode.removeCommand("intave:intave");
//// rootModifier.write(0, new RootCommandNode());
// rootModifier.write(0, rootCommandNode);
// }
@PacketSubscription(
// engine = Engine.ASYNC_INTERNAL,
packetsOut = {
TAB_COMPLETE_OUT
}
)
public void receiveTabComplete(PacketEvent event) {
Player player = event.getPlayer();
PacketContainer packet = event.getPacket();
boolean permitted = BukkitPermissionCheck.permissionCheck(player, "intave.command");
if (permitted) {
return;
}
String[] stuff = packet.getStringArrays().readSafely(0);
if (stuff != null) {
List<String> newTabCompletions = Lists.newArrayList();
Arrays.stream(stuff).filter(string -> !string.contains("/intave") && !string.contains("/iac")).forEach(newTabCompletions::add);
if (newTabCompletions.size() != stuff.length) {
packet.getStringArrays().writeSafely(0, newTabCompletions.toArray(new String[0]));
}
}
}
@Override
protected boolean enabled() {
return (super.enabled() || separateEnable) && !disabled;
}
}
// NOTE (AI): The S3A-relevant branch is receiveTabComplete (lines 90-111), a TAB_COMPLETE_OUT subscription that filters the response's string array. The receiveChatPacket method above it is the C14 request-side half of the same filter and is documented on the C14 page.Removes hidden players from tab-complete responses so vanished staff do not leak through name completion.
Subscribes to TAB_COMPLETE_OUT (S3A) at MONITOR priority, reads the response's string array, and rebuilds it without the names of online players whose UUIDs are not in the viewer's shownPlayers set. The set is maintained by the same filter's PLAYER_INFO (S38) handler, which hides and shuffles the viewer's tab list.
// ===== FILE: intave-intave, src/main/java/de/jpx3/intave/module/filter/VanishFilter.java =====
package de.jpx3.intave.module.filter;
import com.comphenix.protocol.events.PacketContainer;
import com.comphenix.protocol.events.PacketEvent;
import com.comphenix.protocol.wrappers.EnumWrappers;
import com.comphenix.protocol.wrappers.PlayerInfoData;
import com.comphenix.protocol.wrappers.WrappedGameProfile;
import com.google.common.collect.Lists;
import de.jpx3.intave.IntavePlugin;
import de.jpx3.intave.executor.Synchronizer;
import de.jpx3.intave.module.linker.packet.ListenerPriority;
import de.jpx3.intave.module.linker.packet.PacketSubscription;
import de.jpx3.intave.module.linker.packet.PrioritySlot;
import de.jpx3.intave.packet.reader.PacketReaders;
import de.jpx3.intave.packet.reader.PlayerInfoReader;
import de.jpx3.intave.packet.reader.PlayerInfoRemoveReader;
import de.jpx3.intave.user.User;
import de.jpx3.intave.user.UserRepository;
import de.jpx3.intave.user.meta.ProtocolMetadata;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import java.util.*;
import java.util.concurrent.ThreadLocalRandom;
import java.util.stream.Collectors;
import static com.comphenix.protocol.wrappers.EnumWrappers.NativeGameMode.SURVIVAL;
import static de.jpx3.intave.module.linker.packet.PacketId.Server.*;
public final class VanishFilter extends Filter {
private final boolean disabled;
private boolean yukiJoined = false;
private long lastYukiJoin = 0;
public VanishFilter(IntavePlugin plugin) {
super("vanish");
disabled = plugin.settings().getBoolean("command.fix-tab-kicks", false);
int taskId = Bukkit.getScheduler().scheduleAsyncRepeatingTask(plugin, () -> {
if (yukiJoined) {
// 25% chance that yuki will leave
if (ThreadLocalRandom.current().nextInt(1, 100) <= 25) {
Synchronizer.synchronizeDelayed(() -> {
yukiJoined = false;
}, 20 * ThreadLocalRandom.current().nextInt(60, 120));
}
} else {
int hourOfDay = Calendar.getInstance().get(Calendar.HOUR_OF_DAY);
boolean primeTime = hourOfDay >= 22 || hourOfDay <= 3;
int chance = primeTime ? 10 : 2;
if (ThreadLocalRandom.current().nextInt(1, 100) <= chance) {
Synchronizer.synchronizeDelayed(() -> {
yukiJoined = true;
FAKE_DATA = new PlayerInfoData(
new WrappedGameProfile(
UUID.fromString("3ad99947-352f-4719-be96-9bfccc36ae71"),
"funkeln"
),
ThreadLocalRandom.current().nextInt(1, 100),
SURVIVAL,
null
);
lastYukiJoin = System.currentTimeMillis();
}, 20 * ThreadLocalRandom.current().nextInt(60, 120));
}
}
// every 15 minutes
}, 20 * 60 * 15, 20 * 60 * 15);
}
private static PlayerInfoData FAKE_DATA = new PlayerInfoData(
new WrappedGameProfile(
UUID.fromString("3ad99947-352f-4719-be96-9bfccc36ae71"),
"funkeln"
),
ThreadLocalRandom.current().nextInt(1, 100),
SURVIVAL,
null
);
@PacketSubscription(
packetsOut = {PLAYER_INFO}
)
public void on(PacketEvent event) {
Player player = event.getPlayer();
PacketContainer packet = event.getPacket();
// System.out.println("Player info packet: " + packet);
User user = UserRepository.userOf(player);
ProtocolMetadata protocol = user.meta().protocol();
Set<UUID> shownPlayers = protocol.shownPlayers;
PlayerInfoReader reader = PacketReaders.readerOf(packet);
Set<EnumWrappers.PlayerInfoAction> actions = reader.playerInfoActions();
List<PlayerInfoData> playerInfos = reader.playerInfoData();
for (EnumWrappers.PlayerInfoAction action : actions) {
switch (action) {
case ADD_PLAYER:
playerInfos.forEach(data -> {
UUID uuid = data.getProfile().getUUID();
if (shownPlayers.contains(uuid)) {
return;
}
// Synchronizer.synchronize(() -> {
// player.sendMessage("Showing " + data.getProfile().getName() + " to you.");
// });
// System.out.println("Showing " + data.getProfile().getName() + " to you.");
shownPlayers.add(uuid);
});
break;
case UPDATE_GAME_MODE:
case UPDATE_LATENCY:
playerInfos.removeIf(playerInfo -> {
UUID infoId = playerInfo.getProfile().getUUID();
boolean toBeRemoved = !shownPlayers.contains(infoId);
if (toBeRemoved) {
// System.out.println("Hiding " + playerInfo.getProfile().getName() + " from " + player.getName());
}
return toBeRemoved;
});
break;
case REMOVE_PLAYER:
playerInfos.removeIf(playerInfoData -> {
UUID uuid = playerInfoData.getProfile().getUUID();
boolean wasVisible = shownPlayers.remove(uuid);
// System.out.println("Hiding " + playerInfoData.getProfile().getName() + " from you (was visible: "+wasVisible +")");
// Synchronizer.synchronize(() -> {
// player.sendMessage("Hiding " + playerInfoData.getProfile().getName() + " from you (was visible: "+wasVisible +")");
// });
return !wasVisible;
});
break;
}
}
if (playerInfos.isEmpty()) {
event.setCancelled(true);
// System.out.println("Cancelled empty player info packet");
}
Collections.shuffle(playerInfos);
// lists.write(0, playerInfos);
reader.writePlayerInfoData(playerInfos);
reader.release();
}
@PacketSubscription(
// engine = Engine.ASYNC_INTERNAL,
prioritySlot = PrioritySlot.EXTERNAL,
priority = ListenerPriority.MONITOR,
packetsOut = {
TAB_COMPLETE_OUT
}
)
public void receiveTabComplete(PacketEvent event) {
Player player = event.getPlayer();
User user = UserRepository.userOf(player);
ProtocolMetadata protocol = user.meta().protocol();
Set<UUID> shownPlayers = protocol.shownPlayers;
PacketContainer packet = event.getPacket();
String[] stuff = packet.getStringArrays().readSafely(0);
if (stuff != null) {
List<String> playerNames = Bukkit.getOnlinePlayers().stream()
.map(Player::getName).collect(Collectors.toList());
List<String> hiddenPlayers = Lists.newArrayList();
for (String name : playerNames) {
Player target = Bukkit.getPlayerExact(name);
if (target == null) {
continue;
}
if (!shownPlayers.contains(target.getUniqueId())) {
hiddenPlayers.add(name);
}
}
List<String> newTabCompletions = Lists.newArrayList();
Arrays.stream(stuff).filter(string -> !hiddenPlayers.contains(string)).forEach(newTabCompletions::add);
if (newTabCompletions.size() != stuff.length) {
packet.getStringArrays().writeSafely(0, newTabCompletions.toArray(new String[0]));
// Synchronizer.synchronize(() -> {
// player.sendMessage("Removed " + (stuff.length - newTabCompletions.size()) + " hidden players from tab complete");
// });
}
// Synchronizer.synchronize(() -> {
// player.sendMessage("Tab: " + Arrays.toString(stuff) + " -> " + newTabCompletions);
// });
}
}
// @PacketSubscription(
// packetsOut = {
// SCOREBOARD_TEAM
// }
// )
// public void onTeam(PacketEvent event) {
// Player player = event.getPlayer();
// PacketContainer packet = event.getPacket();
// User user = UserRepository.userOf(player);
// ProtocolMetadata protocol = user.meta().protocol();
// Set<UUID> shownPlayers = protocol.shownPlayers;
// String teamName = packet.getStrings().readSafely(0);
// shownPlayers.removeIf(uuid -> teamName.contains(Bukkit.getPlayer(uuid).getName()));
// }
@PacketSubscription(
packetsOut = {
PLAYER_INFO_REMOVE
}
)
public void onRemoval(PacketEvent event) {
Player player = event.getPlayer();
PacketContainer packet = event.getPacket();
User user = UserRepository.userOf(player);
ProtocolMetadata protocol = user.meta().protocol();
Set<UUID> shownPlayers = protocol.shownPlayers;
PlayerInfoRemoveReader reader = PacketReaders.readerOf(packet);
List<UUID> uuids = reader.playersToRemove();
uuids.removeIf(uuid -> !shownPlayers.contains(uuid));
reader.release();
}
@Override
protected boolean enabled() {
return !disabled && super.enabled();
}
}
// NOTE (AI): The S3A-relevant branch is receiveTabComplete (lines 149-190), a TAB_COMPLETE_OUT subscription that filters the response's string array by the viewer's shownPlayers set. The earlier PLAYER_INFO handler maintains that set.Related Packets
Wiki Cross-Reference
Reply to C14 TabComplete: VarInt count then that many completion strings (commands and player names).
On Bukkit servers plugin commands leak as colon-prefixed entries, so one C14 '/' request enumerates server plugins.
MCP 1.8.9 S3APacketTabComplete implements Packet
1.8.9 callers: NetHandlerPlayServer.processTabComplete sends new S3APacketTabComplete (line 1225): https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/network/NetHandlerPlayServer.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.