Add event for incoming TAB_COMPLETE requests (pre-forward, cancellable)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
Línea de trabajo
Start by reading the existing tab completion and command event APIs, especially TabCompleteEvent, PlayerAvailableCommandsEvent, and packet forwarding for TAB_COMPLETE. Trace how incoming packets reach the backend and how event results can cancel or replace responses. Done means plugins can receive this request before forwarding and cancel it or supply a replacement response; the issue names no source files or tests.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Requested Feature
Add an event that fires before an incoming TAB_COMPLETE (Command Suggestions Request) packet is forwarded from the proxy to the backend, allowing plugins to cancel it or replace the response.
@Subscribe
public void onTabCompleteRequest(TabCompleteRequestEvent e) {
// e.getPlayer(), e.getPartialMessage() ("ver", "plugins", ...)
e.setResult(TabCompleteRequestEvent.Result.denied()); // packet dropped, backend never sees it
}
Why is this needed?
Anti plugin detection plugins on the proxy. Mods like Ui-Utils don't use the client's command tree - they send raw TAB_COMPLETE("ver") packets. The proxy forwards them to the backend, the backend replies with its plugin/software list, and the scanner fingerprints the network.
Existing API can't stop this:
TabCompleteEvent- doesn't fire for 1.13+.PlayerAvailableCommandsEvent- only changes the client tree, scanners ignore it.CommandExecuteEvent- not relevant.- Registering fake commands with empty
suggest()- works only for known names, breaks on namespaced/unknown names, hijacks real commands.
Today the only reliable fix is packetevents or a custom netty handler, both work around the lack of a public API. A first-class hook would let proxy plugins block scanners cleanly without external dependencies.
Alternative Solutions
TabCompleteEvent- legacy clients only, doesn't fire for 1.13+.PlayerAvailableCommandsEvent- tree-only; scanners bypass it with raw packets. Verified: removing commands from the root node still doesn't stop Ui-Utils.- Fake commands with empty
suggest()- fragile, incomplete, hijacks real commands, bypassed by namespaced names. packetevents- works, but requires an external dependency for a common proxy-level concern.- Custom netty handler - reimplements
packetevents, uses non-public API, breaks on updates.
Additional Information
Proof the packet reaches the proxy, with packetevents, this blocks scanners completely:
public void onPacketReceive(PacketReceiveEvent event) {
if (event.getPacketType() == PacketType.Play.Client.TAB_COMPLETE) {
WrapperPlayClientTabComplete packet = new WrapperPlayClientTabComplete(event);
String command = packet.getText().toLowerCase().split(" ")[0];
if (shouldBlock(command)) event.setCancelled(true);
}
}
- Lenguaje dominante
- Java
- Estrellas
- 2.3k
- Forks
- 983
- Merge medio
- 4 d 14 h
- PR fusionados (30 d)
- 3
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de PaperMC/Velocity
-
Add a Security PolicyQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertotype: feature
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
PaperMC/Velocity#1914 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
ClosestLocaleMatcher replaces exact locales with the last registered variant (en_US / en_PT)Quizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
GS4 query handler throws on short/malformed datagrams instead of dropping themPosiblemente ocupada @nezxenka la tomó hace 121 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Plugin messages silently dropped during player join when getConnectedServer() is nullPosiblemente ocupada @SendableMetatype la tomó hace 30 días. Abiertotype: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
type: feature
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
PaperMC/Velocity#1920 · 2 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
Todos los issues de PaperMC/Velocity
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 63/100
linagora/twake-calendar-side-service#1578 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Transaction time not recordedAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
moneymanagerex/android-money-manager-ex#3122 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
tchiotludo/akhq#3438 ·
Los mantenedores suelen responder en 1 día