SpeedTab
SpeedTab 是一款可自定义的 Velocity Minecraft 代理插件,用于玩家列表(Tab 列表)。它允许你在不同服务器的 Minecraft Tab 列表中设置自定义标题和页脚,并支持颜色代码与格式控制。
功能
- 可自定义的 Tab 标题和页脚。
- 针对不同服务器显示不同的标题和页脚。
- 支持 Minecraft 颜色代码和格式控制。
- 使用命令
/speedtabreload 重载配置。
- 提供该重载命令的权限节点。
安装
- 从页面顶部下载最新版本的 SpeedTab。
- 将下载的 JAR 文件放入你的 Velocity 服务器的
plugins 目录中。
- 启动你的 Velocity 服务器以生成默认配置文件。
命令
权限
- 重载配置 -
speedtab.reload
默认情况下,除控制台外,没有其他玩家拥有此权限。
若要为玩家授予该权限,你需要在 Velocity 以及后端服务器(例如 Paper)上安装一个权限插件。
本插件已在同时连接到同一 MySQL 服务器、并在 LuckPerms 中将 speedtab.reload 权限赋予我的玩家的 Velocity 和 Paper 环境下测试通过。
配置
在首次运行安装了 SpeedTab 的服务器后,会在 plugins/speedtab 目录下创建一个默认配置文件。
配置文件
配置文件 config.conf 允许你自定义 Tab 标题和页脚。以下是默认配置:
default {
tabTitle = "&aWelcome to &bSpeedTab!"
tabFooter = "&cEnjoy your stay!"
}
servers {
lobby {
tabTitle = "&a欢迎使用 &b大厅!"
tabFooter = "&c请在大厅中享受时光!"
}
survival {
tabTitle = "&a欢迎使用 &b生存模式!"
tabFooter = "&c请在生存模式中享受时光!"
}
// 按需添加更多服务器。
}
为了让不同服务器的页眉和页脚生效,服务器名称必须与 `velocity.toml` 文件中的名称完全一致。如有需要,插件将回退到默认的页眉和页脚。
### 颜色代码
SpeedTab 支持 Minecraft 颜色代码和格式化代码。请在配置文件中以下列方式使用这些代码:
* &0 - 黑色
* &1 - 深蓝色
* &2 - 深绿色
* &3 - 深青色
* &4 - 深红色
* &5 - 深紫色
* &6 - 金色
* &7 - 灰色
* &8 - 深灰色
* &9 - 蓝色
* &a - 绿色
* &b - 青色
* &c - 红色
* &d - 亮紫色
* &e - 黄色
* &f - 白色
* &k - 乱码
* &l - 加粗
* &m - 删除线
* &n - 下划线
* &o - 斜体
* &r - 重置
## 许可证
SpeedTab 遵循 AGPL-3.0 许可证。详见 [LICENSE](https://github.com/AdrianJoeK/SpeedTab/blob/master/LICENSE) 文件以获取更多信息。
## 贡献
欢迎贡献!请在 [GitHub 仓库](https://github.com/AdrianJoeK/SpeedTab) 上提交问题或拉取请求。
## 致谢
* [Velocity](https://papermc.io/software/velocity) - SpeedTab 所基于的 Minecraft 代理服务器。
* [Configurate](https://github.com/SpongePowered/Configurate) - 用于配置管理的库。
* [MiniMessage](https://github.com/KyoriPowered/adventure-text-minimessage) - 用于文本格式化的库。
SpeedTab
SpeedTab is a customizable tab plugin for the Velocity Minecraft proxy. It allows you to set custom headers and footers in the Minecraft tab list across different servers, with support for colour codes and formatting.
Features
- Customizable tab headers and footers.
- Different headers and footers for different servers.
- Support for Minecraft colour codes and formatting.
- Reload config with a command
/speedtabreload.
- Permission node for the reload command.
Installation
- Download the latest release of SpeedTab from the top of the page.
- Place the downloaded JAR file in the
plugins directory of your Velocity server.
- Start your Velocity server to generate the default configuration file.
Commands
- Reload config -
/speedtabreload
Permissions
- Reload config -
speedtab.reload
By default no one has the permission other than the console.
To grant the permission to a player, you will need a permissions plugin installed on Velocity, and in the backend server (eg: Paper).
This was tested with LuckPerms installed on Velocity and Paper, both connected up to the same MySQL server with the speedtab.reload permission applied to my player.
Configuration
After running the server for the first time with SpeedTab installed, a default configuration file will be created in the plugins/speedtab directory.
Configuration File
The configuration file config.conf allows you to customize the tab headers and footers. Here is the default configuration:
default {
tabTitle = "&aWelcome to &bSpeedTab!"
tabFooter = "&cEnjoy your stay!"
}
servers {
lobby {
tabTitle = "&aWelcome to the &bLobby!"
tabFooter = "&cEnjoy your time in the Lobby!"
}
survival {
tabTitle = "&aWelcome to &bSurvival!"
tabFooter = "&cEnjoy your time in Survival!"
}
// Add more servers as required.
}
For headers and footers for different servers to work, the server names should match exactly what you have in your velocity.toml file. The plugin will fallback to the default headers and footers if needed.
Colour Codes
SpeedTab supports Minecraft colour codes and formatting codes. Use the following codes in your configuration file:
- &0 - Black
- &1 - Dark Blue
- &2 - Dark Green
- &3 - Dark Aqua
- &4 - Dark Red
- &5 - Dark Purple
- &6 - Gold
- &7 - Gray
- &8 - Dark Gray
- &9 - Blue
- &a - Green
- &b - Aqua
- &c - Red
- &d - Light Purple
- &e - Yellow
- &f - White
- &k - Obfuscated
- &l - Bold
- &m - Strikethrough
- &n - Underlined
- &o - Italic
- &r - Reset
License
SpeedTab is licensed under the AGPL-3.0 License. See the LICENSE file for more details.
Contributing
Contributions are welcome! Please open an issue or submit a pull request on the GitHub Repository.
Acknowledgements
- Velocity - The Minecraft proxy server that SpeedTab is built for.
- Configurate - The library used for configuration management.
- MiniMessage - The library used for text formatting.
评论 0
登录后参与评分
还没有评论,来抢沙发吧