Add event for incoming TAB_COMPLETE requests (pre-forward, cancellable)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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);
}
}
- 主要言語
- Java
- スター
- 2.3k
- フォーク
- 983
- 平均マージ
- 4日 14時間
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PaperMC/Velocity のほかの issue
-
Add a Security Policy再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンtype: feature
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
PaperMC/Velocity#1914 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
ClosestLocaleMatcher replaces exact locales with the last registered variant (en_US / en_PT)再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
GS4 query handler throws on short/malformed datagrams instead of dropping them対応中かも @nezxenka が 121 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Plugin messages silently dropped during player join when getConnectedServer() is null対応中かも @SendableMetatype が 30 日前に担当しました。 オープンtype: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
type: feature
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
PaperMC/Velocity#1920 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
PaperMC/Velocity の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
linagora/twake-calendar-side-service#1578 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
moneymanagerex/android-money-manager-ex#3122 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
tchiotludo/akhq#3438 ·
メンテナーはふだん 1 日以内に返信