功能
此插件允许你定义玩家 Tab 列表的页眉和页脚
配置
在 plugins\CustomTab 文件夹中,你有 3 个文件:
config.cfg:
如果你想将插件与
Bungee 版本 绑定以获取全局数据(例如 Bungee 的玩家数量等),插件将作为本地 Tab 运行,而 Bungee 作为全局 Tab(本地数据和 Bungee 数据都可以在全局和本地配置中使用)
footer.cfg & header.cfg:
要更改 Tab 数据,你可以使用 "&" 来表示颜色,并使用以下内容来添加信息:
%localdisplayname%:本地玩家的显示名称
%localname%:本地玩家的用户名
%worldname%:本地玩家所在的世界名称
%localmotd%:本地服务器的 MOTD
%localversion%:本地服务器版本
%localservername%:本地服务器名称
%localmaxplayer%:本地最大玩家数量
%localplayerscounts%:本地玩家数量
%x%, %y%, %z%:玩家的位置坐标
%px%, %py%, %pz%:精确的玩家位置坐标
%tps%:服务器 TPS
%ldate%:本地机器日期
%lcping%:本地玩家的延迟
%lping%:带颜色的本地玩家延迟
%ldate-<格式>%:具有特定格式的机器日期:https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
%swap-<颜色>% 或 %s-<颜色>%:在颜色列表中每秒切换一次。%swaplight% 或 %swapheavy% 用于轻/重颜色同步(%s-<颜色>% / %sl% / %sh% 也有效)
%swaptext-延迟-文本1;;文本2;;...%:在文本列表中每隔指定延迟(秒)切换一次显示文本(%st-(...) 也有效)
(如果在配置中将 bungeecord 设置为 true,请检查 Bungee 插件的选项列表)
使用以下配置:
header.cfg
%sh%你好 %sl%%localname%%sh%! %s-54dc%❤ %sh%时间:%sl%%ldate%%sh% c:%sl%&m----%sh%&m----%sl%&m----%sh%&m----%sl%&m----%sh%&m----%sl%&m----
footer.cfg
%sl%&m----%sh%&m----%sl%&m----%sh%&m----%sl%&m----%sh%&m----%sl%&m----
%sh%服务器:%sl%%localservername%%sh% / 延迟:%sl%%lping%
%servermotd%
%sh%玩家:%sl%%localplayerscounts%%sh% / tps:%sl%%tps%
%st-2-我的第一个选项;;第二个选项;;第三个选项%
LocalTab 命令 /ltab
你可以在游戏中使用 /ltab 编辑 Tab 列表:
所有粗体字符都是可点击的选项
/ltab
/ltab footer
/ltab opt
权限
ctp.ltab:使用 /ltab 命令
ctp.ltab.reload:重新加载配置
ctp.ltab.opt:显示可用的文本选项
ctp.ltab.show:显示 Tab 部分
ctp.ltab.delline:删除一行
ctp.ltab.addline:添加一行
ctp.ltab.setline:设置一行
集成
你可以使用 API 实现你自己的 Bukkit 插件选项,点击此处查看更多信息。
Features
This plugin allow you to define player's tab header and footer
Configs
In the plugins\CustomTab folder you have 3 files :
config.cfg:
If you want to bind the plugin with the
Bungee version to get global data (Like bungee's playerscounts...), the plugin will work as local tab and bungee as global tab (local datas and bungee datas can be use both in global and local configs)
footer.cfg & header.cfg:
To change the tab data, you can use "&" for color and this to add information :
%localdisplayname% : Local player's display name
%localname% : Local player's name
%worldname% : Local player's world name
%localmotd% : Local server M.O.T.D.
%localversion% : Local server version
%localservername% : Local server name
%localmaxplayer% : Local max player counts
%localplayerscounts% : Local player counts
%x%, %y%, %z% : Player's location
%px%, %py%, %pz% : Accurate player's location
%tps% : Server TPS
%ldate% : Local machine date
%lcping% : Local player's ping
%lping% : Local player's ping with color
%ldate-<format>% : Machine date with a specific format : https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
%swap-<colors>% or %s-<colors>% : swap every second in a list of colors %swaplight% or %swapheavy% for light/heavy color synchronised (%s-<color>% / %sl% / %sh% also works)
%swaptext-delay-text1;;text2;;...% : swap every every delay (in second) in a list of texts (%st-(...) also work)
(Check Bungee plugin's Options List if you set bungeecord on true in your configs)
with the configs :
header.cfg
%sh%Hello %sl%%localname%%sh% ! %s-54dc%❤ %sh%Time: %sl%%ldate%%sh% c: %sl%&m----%sh%&m----%sl%&m----%sh%&m----%sl%&m----%sh%&m----%sl%&m----
footer.cfg
%sl%&m----%sh%&m----%sl%&m----%sh%&m----%sl%&m----%sh%&m----%sl%&m----
%sh%Server: %sl%%localservername%%sh% / Ping: %sl%%lping%
%servermotd%
%sh%Players: %sl%%localplayerscounts%%sh% / tps: %sl%%tps%
%st-2-My 1rs option;;My second option;;My 3rd option%
LocalTab command /ltab
You can edit tab in game with /ltab :
EVERY BOLD CHARACTERS ARE CLICKABLES OPTIONS
/ltab
/ltab footer
/ltab opt
Permissions
ctp.ltab : use /ltab command
ctp.ltab.reload : Reload config
ctp.ltab.opt : Show available text options
ctp.ltab.show : Show tab part
ctp.ltab.delline : Delete a line
ctp.ltab.addline : Add a line
ctp.ltab.setline : Set a line
Integration
You can implement your own options of your Bukkit plugin with the API, check here for more information.
评论 0
登录后参与评分
还没有评论,来抢沙发吧