TabPlayerHider
在不将特定玩家从游戏世界中移除的情况下,将其从标签页列表中隐藏。适用于运行机器人的服务器:hidden-players 中列出的名称会从标签页列表中消失,但仍完全存在于游戏中,具备正常的碰撞、可见性和行为逻辑。
功能特性
- 使用延迟 1 刻的包,在玩家加入时从每个客户端的标签页列表中移除配置的玩家
- 通过命令即时隐藏和显示玩家,无需重新登录
- 机器人名称存储在配置文件中,并在重启后持久保存
/tabh hide 命令的补全会列出在线玩家,/tabh show 命令的补全会列出当前被隐藏的名称
配置文件
# config.yml
hidden-players:
- "BotName1"
- "BotName2"
名称区分大小写,必须与 Minecraft 用户名完全匹配。
权限
| 权限 |
描述 |
默认值 |
tabplayerhider.admin |
访问所有 /tabh 命令 |
op |
命令
主命令:/tabplayerhide,别名:/tph
| 命令 |
描述 |
/tph on |
启用隐藏功能,被隐藏的玩家将从标签页列表中消失 |
/tph off |
禁用隐藏功能,所有玩家在标签页列表中再次可见 |
/tph status |
显示当前状态、被隐藏玩家数量以及在线人员列表 |
/tph hide <player> |
将玩家从标签页列表中隐藏,并将其保存到配置文件中 |
/tph show <player> |
将玩家再次显示在标签页列表中 |
/tph list |
列出当前所有被隐藏的玩家名称 |
/tph reload |
重新加载配置文件并重新应用隐藏设置 |
要求
|
|
| 服务端 |
Paper 1.21.x |
| Java |
21+ |
工作原理
每当有玩家加入时,插件会在加入后的下一刻(tick),向该加入客户端发送针对每个被隐藏玩家的 ClientboundPlayerInfoRemovePacket。由于这一延迟,数据包会在服务器自身的玩家信息广播之后到达。仅操作标签页数据包,不涉及实体追踪或计分板,因此被隐藏的玩家在世界中依然完全可见。
TabPlayerHider
Hides specific players from the tab list without removing them from the game world. Useful for servers running bots: names listed in hidden-players disappear from the tab list but stay fully present in game, with normal collision, visibility and behaviour.
Features
- Removes configured players from every client's tab list on join, using a 1 tick delayed packet
- Hide and show players instantly via command, no relog required
- Bot names are stored in the config and persist across restarts
- Tab completion for
/tabh hide lists online players, /tabh show lists currently hidden names
Configuration
# config.yml
hidden-players:
- "BotName1"
- "BotName2"
Names are case-sensitive and must match the exact Minecraft username.
Permissions
| Permission |
Description |
Default |
tabplayerhider.admin |
Access to all /tabh commands |
op |
Commands
Main command: /tabplayerhide, alias: /tph
| Command |
Description |
/tph on |
Enable hiding, hidden players disappear from the tab list |
/tph off |
Disable hiding, all players are visible in the tab list again |
/tph status |
Show current state, hidden player count and who is online |
/tph hide <player> |
Hide a player from the tab list and save it to the config |
/tph show <player> |
Show a player in the tab list again |
/tph list |
List all currently hidden player names |
/tph reload |
Reload the config and re-apply hiding |
Requirements
|
|
| Server |
Paper 1.21.x |
| Java |
21+ |
How it works
On every player join the plugin sends a ClientboundPlayerInfoRemovePacket for each hidden player directly to the joining client, one tick after join so it lands after the server's own player-info broadcast. Only the tab list packet is touched, not entity tracking or the scoreboard, so hidden players stay fully visible in the world.
评论 0
登录后参与评分
还没有评论,来抢沙发吧