MiniTab
查看 Wiki
简单且小巧(约 200 行代码)的 TabList 页眉/页脚管理器,由 MiniMessage 驱动并功能丰富!
安装设置
重要提示
MiniTab 仅兼容 Paper 及其分支服务器,不兼容 Bukkit 或 Spigot!
从 () 下载,放入 /plugins 目录并重启服务器。
使用方法
MiniTab 会自动从 config.json 加载页眉和页脚,并向所有玩家显示。
注意
如果 MiniTab 检测到页眉或页脚为空,它将不会显示!
要更改文本,只需编辑配置并发出 /tab reload 命令即可。
命令
| 命令 |
描述 |
| /tab info |
关于 MiniTab 的信息 |
| /tab reload |
重新加载配置(并重新检查 PlaceholderAPI 支持情况) |
| /tab stop |
暂停 MiniTab 功能(移除页眉/页脚) |
| /tab start |
恢复 MiniTab 功能 |
PlaceholderAPI
MiniTab 用户可以在页眉和页脚中使用 PlaceholderAPI 占位符。请参阅
PlaceholderAPI 文档以了解可用的占位符。
配置
{
"version": 1,
"header": {
"raw": "<gradient:red:blue:<x>>Hello, %player_name%!</gradient>",
"animated": true,
"animationSpeed": 0.1
},
"footer": {
"raw": "<blue><b>Its an nice Day!</b></blue>",
"animated": false,
"animationSpeed": 0.0
}
}
version -> 用于更新,请勿修改!
header -> 页眉,位于玩家上方
footer -> 页脚,位于玩家下方
raw - 消息内容。支持 MiniMessage 语法以及来自 PlaceholderAPI 的占位符
animated - 如果设置为 true,插件将尝试对文本进行动画处理
重要提示
动画是通过(滥用)MiniMessage 的 phase 特性实现的。如果您想使用它们,请确保
在渐变标签的最后一个参数中包含占位符 <x>。请参阅
MiniMessage 文档了解更多详情,或参考上面的示例。
animationSpeed - 动画的速度。数值越高,动画速度越快。
许可证
除非另有说明,Mini.Tab 根据 GNU Affero 通用公共许可证第 3 版授权,该许可证要求任何对本软件的修改版本或使用该软件的其他软件(无论是直接使用还是通过网络使用),除了分享修改的标准 GPL 要求外,还必须向用户提供其源代码。
MiniTab
Have a look at the Wiki
Simple and small (~200LoC) TabList Header/Footer Manager, powered by MiniMessage and packed with features!
Setup
IMPORTANT
MiniTab is only compatible with Paper and Forks, not Bukkit or Spigot!
Download from (), drop into /plugins and restart your server
Usage
MiniTab will automatically load the header/footer from config.json and display it to all players.
NOTE
If MiniTab detects an empty Header/Footer, it will not display it!
To change the text, simply edit the configuration and issue /tab reload
Commands
| Command |
Description |
| /tab info |
Information about MiniTab |
| /tab reload |
Reloads the Config (and rechecks for PlaceholderAPI support) |
| /tab stop |
Suspend MiniTab functions (removes the header/footer) |
| /tab start |
Resumes MiniTab functions |
PlaceholderAPI
MiniTab users can use PlaceholdeAPI placeholders in both header and footer. Refer to
the PlaceholderAPI documentation to discover Placeholders
Configuration
{
"version": 1,
"header": {
"raw": "<gradient:red:blue:<x>>Hello, %player_name%!</gradient>",
"animated": true,
"animationSpeed": 0.1
},
"footer": {
"raw": "<blue><b>Its an nice Day!</b></blue>",
"animated": false,
"animationSpeed": 0.0
}
}
version -> Used for updates, do not touch!
header -> The header, above the players
footer -> The footer, below the players
raw - The Message. Supports MiniMessage and Placeholders from PlaceholderAPI
animated - If set to true, the plugin will try to animate the text
IMPORTANT
Animations are created by (ab)using the phase feature of MiniMessage. If you want to use them, please make
sure you include the placeholder <x> as the last argument of your Gradient. Refer to the
MiniMessage Documentation to learn more, or have look at
the example above.
animationSpeed - How fast the animation is. The higher the number - the faster the animation.
License
As long as not stated otherwise, Mini.Tab is licensed under the GNU Affero General Public License, version 3, which
requires that any modified version of this software, or software using it, whether directly or used over a network
has to have its code available to its users, in addition to the standard GPL requirements for sharing modifications.
评论 0
登录后参与评分
还没有评论,来抢沙发吧