迷の十六
本帖最后由 迷の十六 于 2017-4-9 16:58 编辑

指令

所有指令以 /tm 或 /titlemanager 开头

<参数> = 必要的参数.
[参数] = 可选的参数.

添加 %{placeholder} 或 %{placeholder:parameter} 将它替换于placeholder的变量值.
添加 ${animation} 将替换动画于指定动画信息.
添加 ${script:input}将替换脚本和输入值于一个动画.

  • 公告
    用法: /tm bc [参数] <信息> 或 /tm broadcast [参数] <信息>

    参数:
    [参数] - 附加参数.
    < 信息> - 显示的信息.

    支持参数:
    无效果
    淡出
    停留
    淡入
    半径
    世界
    描述: 发送标题给服务器的玩家, 可以把 <nl>, %{nl} 或 %nl% 等变量放在标题信息.

  • 标题条公告
    用法: /tm abc [参数] <信息> 或 /tm abroadcast [参数] <信息>

    支持参数:
    无效果
    半径
    世界
    描述: 发送标题条给玩家.

  • 信息
    用法: /tm msg [参数] <玩家> <信息> 或 /tm message [参数] <玩家> <信息>

    参数:
    [参数] - 附加参数.
    < 玩家> - 发送信息给指定玩家.
    < 信息> - 显示的信息.

    支持参数:

    无效果
    淡出
    停留
    淡入
    描述: 发送标题信息给指定玩家, 可以把 <nl> 或 %{nl} 或 %nl% 等变量添加到标题信息.

  • 信息
    用法: /tm amsg [参数] <玩家> <信息> or /tm a信息 [参数] <玩家> <信息>

    参数:
    [参数] - 附加参数.
    < 玩家> - 发送信息给指定玩家.
    < 信息> - 显示的信息.

    支持的参数:

    无效果
    描述: 发送标题信息给指定玩家, 可以把 <nl> 或 %{nl} 或 %nl% 添加到标题信息.


  • 动画
    用法: /tm animations
    描述: 列出当前加载的动画

  • 脚本
    用法: /tm scripts
    描述: 列出当前加载的脚本.

  • 重载
    用法: /tm reload
    描述: 重载配置文件, 动画和 scripts.


参数


  • 无效果
    用法: -silent

    原文 Makes it so that the command won't return any response text.
    (Useful for voting commands as the console won't be spammed by messages anymore.)
    十六渣翻 就这样指令不会有任何文本响应并返回.
    (用于控制台指令,今后不会再有太多信息了.)  这段理解不了=-=

  • 淡出
    用法: -fadein=ticks
    例子: -fadein=20 将淡出时间设置为 20 ticks (1 秒).

    设置淡出时间,将标题在屏幕上淡出 (自定义 ticks).

  • 停留
    用法: -stay=ticks
    例子: -stay=40 将停留时间设置为 40 ticks (2 秒).

    设置停留时间,将标题在屏幕上停留 (自定义 ticks).

  • 淡入
    用法: -fadeout=ticks
    例子: -fadeout=20 将淡入时间设置为 20 ticks (1 秒).

    设置淡入时间,将标题在屏幕上淡入 (自定义 ticks).

  • 世界
    用法: -world 或 -world=世界名
    例子: -world=PlotWorld

    将广告发送到指定世界, 如果没有选择世界或指定发送者, 那么将发送给服务器内玩家.

  • 半径
    用法: -radius=半径范围
    例子: -radius=10

限制公告到指定方块数量范围. 如果发送者不是玩家, 那么这个参数不会工作.

权限

指令权限
权限
titlemanager.command.reload
titlemanager.command.broadcast
titlemanager.command.message
titlemanager.command.abroadcast
titlemanager.command.amessage
titlemanager.command.animations
titlemanager.command.scripts
指令
/tm reload
/tm bc
/tm msg
/tm abc
/tm amsg
/tm animations
/tm scripts

其他权限

权限
titlemanager.update.notify
介绍
将插件更新信息发送给有此权限的玩家.


配置

  1. ############################################################
  2. # +------------------------------------------------------+ #
  3. # |                       注意                           | #
  4. # +------------------------------------------------------+ #
  5. ############################################################

  6. # 配置文件风格源于 Essentials config.
  7. #
  8. # 如果你想在配置中使用特殊字符 (ASCII, UTF-8 characters), 你想要将文件保存至 UTF-8 编码.
  9. #   - 如果你不懂如何使用, 你能在 guide 看到 wiki: https://github.com/Puharesource/TitleManager/wiki/Unicode---UTF-8-characters-for-TitleManager
  10. #
  11. # 配置错误, 如插件未加载或 the config resetting can be fixed by ensuring that:
  12. #   - 不能用tabs: YAML 只允许使用空格.
  13. #   - 你没有在你的选项设置的文字外引用单引号:
  14. #      - If you surround your text with apostrophes like this 'don't', double all of your apostrophes like this: 'don''t'
  15. #      - If you surround your text with quotes like this "Quote: "hello"", switch to apostrophes instead like this 'Quite: "hello"'.
  16. #
  17. # 如果你有难题:
  18. #   - 加入 Discord 聊天室: https://discord.gg/NwdtW2d
  19. #   - 解决问题在 Tracker: https://github.com/Puharesource/TitleManager/issues
  20. #
  21. # 1 秒 = 20 ticks
  22. #
  23. # 详细信息: https://github.com/Puharesource/TitleManager/wiki

  24. ############################################################
  25. # +------------------------------------------------------+ #
  26. # |                       通常                           | #
  27. # +------------------------------------------------------+ #
  28. ############################################################

  29. # 请不要更改这个选项
  30. config-version: 4

  31. # 切换 debug 模式, 当你做了什么的时候 报告插件信息.
  32. debug: false

  33. # 切换 TitleManager 所有功能是否启用.
  34. using-config: true

  35. # 切换 BungeeCord 功能是否启用.
  36. using-bungeecord: false

  37. # (Feature only works on 1.7-1.8 Protocol Hack)
  38. # 切换1.7玩家手持物品时是否显示ActionBar信息.
  39. legacy-client-support: false

  40. # 切换是否提醒玩家版本更新.
  41. check-for-updates: true

  42. ############################################################
  43. # +------------------------------------------------------+ #
  44. # |                     玩家列表                         | #
  45. # +------------------------------------------------------+ #
  46. ############################################################

  47. # 设置玩家列表的顶部和结尾. (当你按住Tab键时显示.)

  48. player-list:

  49.   # 切换功能是否启用.
  50.   enabled: true

  51.   # 设置玩家列表的标题.
  52.   #
  53.   # 单行格式.
  54.   # header: '我的标题信息'
  55.   #
  56.   # 多行格式.
  57.   # header:
  58.   # - '我的第一行'
  59.   # - '我的第二行'
  60.   # - '我的第三行'
  61.   header:
  62.   - ''
  63.   - '${shine:[0;2;0][0;25;0][0;25;0][&3;&b]My Server}'
  64.   - ''

  65.   # 设置玩家列表的结尾.
  66.   #
  67.   # 单行格式.
  68.   # footer: '我的结尾信息'
  69.   #
  70.   # 多行格式.
  71.   # footer:
  72.   # - '我的第一行'
  73.   # - '我的第二行'
  74.   # - '我的第三行'
  75.   footer:
  76.   - ''
  77.   - '&7World time: &b%{12h-world-time}'
  78.   - '&7Server time: &b%{server-time}'
  79.   - ''
  80.   - '${right-to-left} &b%{online}&7/&b%{max} &7Online Players ${left-to-right}'

  81. ############################################################
  82. # +------------------------------------------------------+ #
  83. # |                    欢迎标题                          | #
  84. # +------------------------------------------------------+ #
  85. ############################################################

  86. # 设置玩家加入服务器时显示的标题信息.

  87. welcome-title:

  88.   # 是否启用.
  89.   enabled: true

  90.   # 标题信息.
  91.   title: 'Welcome to My Server'

  92.   # 副标题信息.
  93.   subtitle: 'Hope you enjoy your stay'

  94.   # 标题淡入的时间. (In ticks)
  95.   fade-in: 20

  96.   # 标题停留的时间. (In ticks)
  97.   stay: 40

  98.   # 标题淡出的时间. (In ticks)
  99.   fade-out: 20

  100.   # 玩家第一次加入服务器显示的标题信息.
  101.   first-join:

  102.     # 标题信息.
  103.     title: 'Welcome to My Server'

  104.     # 副标题信息.
  105.     subtitle: 'This is your first time!'

  106. ############################################################
  107. # +------------------------------------------------------+ #
  108. # |                  欢迎 标题条                      | #
  109. # +------------------------------------------------------+ #
  110. ############################################################

  111. # 设置玩家加入服务器时显示的标题条信息.

  112. welcome-actionbar:

  113.   # 是否启用.
  114.   enabled: true

  115.   # 标题条信息.
  116.   title: 'Welcome to My Server'

  117.   # 玩家第一次加入服务器显示的标题条信息.
  118.   first-join: 'Welcome to My Server, this is your first time!'

  119. ############################################################
  120. # +------------------------------------------------------+ #
  121. # |                     Placeholders                     | #
  122. # +------------------------------------------------------+ #
  123. ############################################################

  124. # 设定相关 placeholder 的任何事情.

  125. placeholders:

  126.   # 采用 balance 变量格式.
  127.   number-format:

  128.     # 是否启用.
  129.     enabled: true

  130.     # 使用格式.
  131.     format: '#,###.##'

  132.   # 服务器时间的变量.
  133.   # 更多格式: https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
  134.   date-format: 'EEE, dd MMM yyyy HH:mm:ss z'

  135. ############################################################
  136. # +------------------------------------------------------+ #
  137. # |                      计分板                          | #
  138. # +------------------------------------------------------+ #
  139. ############################################################

  140. # 设置计分板 (侧边) 显示信息

  141. scoreboard:

  142.   # 是否启用
  143.   enabled: true

  144.   # 计分板标题显示信息
  145.   # 标题必须由 32 或更少字符组成 (包括颜色代码)
  146.   title: '${shine:[0;2;0][0;25;0][0;25;0][&3&l;&b&l]My Server}'

  147.   # 计分板行数 (最多 15 行)
  148.   # 每行最多 40 字符 (包括颜色代码)
  149.   # 每一行必须是独特的, 想让他工作必须把你的行数结尾加上颜色代码, 让他独特.
  150.   lines:
  151.   - '&b&m----------------------------------'
  152.   - '&b● &3&lPlayer Name:'
  153.   - '&b%{name}'
  154.   - '&r'
  155.   - '&b● &3&lPing:'
  156.   - '&b%{ping} MS'
  157.   - '&r&r'
  158.   - '&b● &3&lServer Time:'
  159.   - '&b%{server-time}'
  160.   - '&b&m----------------------------------&r'

  161. ############################################################
  162. # +------------------------------------------------------+ #
  163. # |                      公告                            | #
  164. # +------------------------------------------------------+ #
  165. ############################################################

  166. # 自动发送标题和/或标题条信息给服务器的玩家.

  167. announcer:

  168.   # 是否启用.
  169.   enabled: true

  170.   # 演示公告
  171.   #
  172.   # The format:
  173.   #
  174.   # announcement-name:
  175.   #   interval: 60                        (Seconds, Default: 60)
  176.   #   timings:
  177.   #     fade-in: 20                       (Ticks, Default: 20)
  178.   #     stay: 40                          (Ticks, Default: 40)
  179.   #     fade-out: 20                      (Ticks, Default: 20)
  180.   #   titles:
  181.   #   - 'First title'                     (The title sent)
  182.   #   - 'Second title\nSecond subtitle'   (The next title sent, this time using \n to split the title and subtitle from each other)
  183.   #   actionbar:
  184.   #   - 'First actionbar'                 (The actionbar message sent)
  185.   #   - 'The next actionbar sent'         (The next actionbar message sent)
  186.   announcements:
  187.     my-announcement:
  188.       interval: 60
  189.       timings:
  190.         fade-in: 20
  191.         stay: 40
  192.         fade-out: 20
  193.       titles:
  194.       - '&aThis is the 1st title announcement\n&aThis is the subtitle'
  195.       - '&bThis is the 2nd title announcement\n&bThis is the subtitle'
  196.       actionbar:
  197.       - '&aThis is the 1st actionbar announcement'
  198.       - '&bThis is the 2nd actionbar announcement'

  199. ############################################################
  200. # +------------------------------------------------------+ #
  201. # |                       信息                           | #
  202. # +------------------------------------------------------+ #
  203. ############################################################

  204. # 设置所有用户显示的信息.

  205. messages:

  206.   # /tm version 指令信息
  207.   command-version:
  208.     description: '显示当前TitleManager运行版本'
  209.     version: '&a当前运行版本 %version'

  210.   # /tm reload 指令信息
  211.   command-reload:
  212.     description: 'Reloads TitleManager'
  213.     reloaded: '&aTitleManager 已重载'

  214.   # /tm animations
  215.   command-animations:
  216.     description: '列出已加载的动画信息'
  217.     format: '&a已加载的动画列表 (&f%count&a): %animations'
  218.     separator: '&f, &a'

  219.   # /tm scripts
  220.   command-scripts:
  221.     description: '列出已加载的脚本信息'
  222.     format: '&a已加载的脚本列表 (&f%count&a): %scripts'
  223.     separator: '&f, &a'

  224.   # /tm broadcast
  225.   command-broadcast:
  226.     description: '发送标题公告给服务器内玩家'
  227.     usage: '<标题信息>|<标题信息\n副标题信息>'
  228.     title-sent: '&a你已发出标题信息 "&r%title&a".'
  229.     subtitle-sent: '&a你已发出副标题信息 "&r%subtitle&a".'
  230.     both-sent: '&a你已发出了标题以及副标题信息 "&r%title&a" "&r%subtitle&a".'

  231.   # /tm abroadcast
  232.   command-abroadcast:
  233.     description: '发送标题条公告给服务器内玩家'
  234.     usage: '<标题信息>'
  235.     sent: '&a你已发送标题条信息 "&r%title&a".'

  236.   # /tm message
  237.   command-message:
  238.     description: '发送标题给指定玩家'
  239.     usage: '<玩家> <标题信息>|<标题信息\n副标题>'
  240.     title-sent: '&a你已发送给 %player 标题内容: "&r%title&a".'
  241.     subtitle-sent: '&a你已发送给 %player 副标题内容: "&r%subtitle&a".'
  242.     both-sent: '&a你已发送给 %player 标题以及副标题内容: "&r%title&a" "&r%subtitle&a".'
  243.     invalid-player: '&c未找到 %player.'

  244.   # /tm amessage
  245.   command-amessage:
  246.     description: '发送标题条给指定玩家'
  247.     usage: '<玩家> <标题信息>'
  248.     sent: '&a你已发送给 %player 标题条内容: "&r%title&a".'
  249.     invalid-player: '&c未找到 %player.'
复制代码

变量

TitleManager 为你提供许多的变量, 可用在玩家列表的标题和结尾等. 变量名如下:
想要更多的变量请下载 PlaceholderAPI 和享受更多变量!

正常变量

变量名
%{player}
%{displayname}
%{strippeddisplayname}
%{world}
%{world-time}
%{12h-world-time}
%{24h-world-time}
%{world-online}
%{online}
%{max}
%{server-time}
%{ping}
%{group}
%{balance}
%{safe-online}


介绍
玩家用户名称.
玩家显示名称 (称号等).

玩家显示名称 (称号等), 无颜色.
玩家当前所在的世界名称.
玩家当前所在的世界时间.
玩家当前所在的世界时间,12小时格式.
玩家当前所在的世界时间,24小时格式.
玩家当前所在的世界的在线人数.
服务器的玩家在线人数.
服务器最大人数.
服务器时间.
玩家延迟.
玩家所在的组. (需要 vault)
玩家金钱数量.
在线玩家数量,不支持AFK的玩家数量. (需求 Essentials, VanishNoPacket 和 / 或 SuperVanish)


BungeeCord 变量
变量名
%{bungeecord-online}
%{online:YourServerHere}
%{server}
介绍
显示BC所有服务器的在线人数.
显示玩家当前的服务器在线人数. (需求你在 这里服务器 于 bungeecord 服务器名)(理解不是很好 被这个搞乱了)
显示玩家当前服务器的名称.

来自群组: PluginsCDTribe

星林
不错不错是正好我需要的

灭世黑焰
点券的变量有没有啊

迷の十六
灭世黑焰 发表于 2017-8-11 12:17
点券的变量有没有啊

你知道PlaceholderAPI是什么吗?

北归
插件挺不错,就是有些变量还不支持,比如等级,点卷,

迷の十六
你知道PlaceholderAPI是什么吗?

北归
迷の十六 发表于 2017-8-23 14:07
你知道PlaceholderAPI是什么吗?

变量的插件?

Back_Wheel
迷の十六 发表于 2017-8-23 14:07
你知道PlaceholderAPI是什么吗?

emm,papi的变量用不了啊...