PistonMOTD | 支持1.20以及RGB!

授权转载 工具 PistonMOTD | 支持1.20以及RGB! 5.2.0

Source of resources
Authorized reprinted
插件中文名称
活塞MOTD
插件英文名称
PistonMOTD
原帖地址
https://www.spigotmc.org/resources/pistonmotd-rgb-and-1-20-support.80567/
支持的核心(服务端)
  1. Spigot
  2. Paper
适配版本(Java)
  1. 1.8
  2. 1.9
  3. 1.10
  4. 1.11
  5. 1.12
  6. 1.13
  7. 1.14
  8. 1.15
  9. 1.16
  10. 1.17
  11. 1.18
  12. 1.19
  13. 1.20
这是一款很棒的MOTD!!!!

[IMG]
[IMG]

[IMG]
[IMG]

[IMG]
[IMG]

[IMG]

特点
  • 自定义在线玩家和最大玩家数
  • 随机MOTD
  • 可以让客户端显示版本已过期
  • 随机图标
  • 占位符(可通过api扩展)
  • 隐藏您的玩家人数(仅适用于bukkit)
  • 简单的配置
  • 模块化(您可以启用/禁用每个功能)
  • TPS占位符
  • RGB支持
  • Luckperms前缀支持
与其他MOTD插件兼容。(不能保证它将与每个MOTD插件一起使用。)
配置
Bungeecord:
YAML:
#颜色代码列表:https://minecraft.tools/zh-cn/color-code.php
#格式 &d&l will work, 而不是 &l&d.
#Placeholders: %online% (在线玩家)
#%max% (服务器最大人数)
#%aftericon% 添加一堆空格,使文字位于图标后。
#%newline% 添加新一行motd

playercounter:
  activated: true
  text:
- '&3你好,世界!'
  - '&e新的一行!'
  - '&6    空格!'
  - '&d&lCombined'
  - '&1Players: %online%'
  - '&2Max: %max%'
overrideonline:
  activated: false
  value: 0
overridemax:
  activated: false
  value: 10
protocol:
  activated: false
  text: '&1我的自定义消息!'
icons:
  activated: false
motd:
  activated: true
  text:
- 你好! %newline%世界!
  - Use &4color codes!
  - '&ka &rFormatting &rworks &rtoo! &ka'
  - '&1Players: %online%'
  - '&2Max: %max%'
Bukkit:
YAML:
# 颜色代码列表: https://minecraft.tools/en/color-code.php
# 格式 &d&l will work,而不是 &l&d.
# 现已支持MiniMessage格式: https://docs.adventure.kyori.net/minimessage.html#template
# 现已支持HEX/RGB 颜色 . (仅限 motd)
# Hex格式: &#FFFFFF
# 注意: 你可以使用 MiniMessage来制作彩虹色和渐变色
# Placeholders: %online% (在线玩家列表)
# %max% (服务器最大人数)
# %newline%添加新一行motd
# %tps% 展示tps (仅限Paper端)
motd:
  activated: true
  text:
   - "你好! %newline%世界!"
    - "使用 &4颜色 代码!"
    - "&ka &rFormatting &rworks &rtoo! &ka"
    - "&1Players: %online%"
    - "&2Max: %max%"

overridemax:
  activated: false
  value: 10

icons: false

#扩展配置仅适用于paper端https://papermc.io /
#PS:不是paper端的可以不用往下看了(译者注)
# On paper you also get the %tps% placeholder
extended:
# A protocol message is shown if the version of the client doesn't match the version of the server.
  # %aftericon% adds a bunch of spaces so the text is after the icon. (Only for protocol)
  protocol:
    activated: false
    text: "&1我的自定义消息!"
  overrideonline:
    activated: false
    value: 0
  #  (当玩家将鼠标移到服务器信号上时)客户端不显示玩家列表,而是显示“ ???”
  hideplayers: false
  #  当您将鼠标悬停在(就是服务器信号)玩家列表上时,会显示此内容
  playercounter:
    activated: true
    text:
     - "&3你好世界!"
      - "&e新的一行!"
      - "&6    spaces!"
      - "&d&lCombined"
      - "&1Players: %online%"
      - "&2Max: %max%"

hooks:
  extended:
    luckpermsplayercounter: false
指令
指令权限用途
/pistonmotd helppistonmotd.help查看帮助
/pistonmotd reloadpistonmotd.reload重载插件
指令权限用途
/pistonmotdbukkit helppistonmotd.help查看帮助
/pistonmotdbukkit reloadpistonmotd.reload重载插件
API
如果要用一个其他插件来创建和执行你自己的解析器。您需要一个类似于 PlaceholderParser的东西,并使用 #registerParser().在PlaceholderUtil 注册它。
It IS possible to create and execute your own parsers with an external plugin. To register you need a class implementing the PlaceholderParser and to register it at the PlaceholderUtil with #registerParser().
本段“API”翻译仅个人理解,可能有错误
这是几个例子:
ServerPlaceholder
Registering

这东西可能会有些帮助:
JavaDoc

未来的计划

  • 没有
如果你有什么想法或建议,请在discord中让我知道)

下载
  • 10好
  • 25酷
  • 50真棒
  • 75很棒
  • 100令人难以置信!
    o_O
    o_O
  • 125难道我们现在这么受欢迎吗?
    ;)
  • 150 OMG
    :eek:
  • 175在去往百万下载量的路上
  • 200OMG200 ???
    :爱:
  • 250下载量的增长会终结吗?
    :不确定:
  • 300哇!
    :D
    我们怎么这么快到达这里的?
  • 600我们如何快速将计数加倍?
    :不确定:
  • 1000!(☞゚ヮ゚)☞

Stats
69b07d580b543327394ae01f6095fdf09f665bce

7afe0c0527206e01e212f25c78d9e092f186c685

27ae854a3219ec5af3cd1a31e1c80cac0ebac391

Discord
43020c1fc828af98dcd9c87eb8ac4ee6a704c61f

如果您喜欢我的插件,请留下评分。 并在 discord上支持我!
(y)

玩的开心!
授权
1606227560083.png
  • Like
Reactions: YanBing Online
Author
冰之睿
Downloads
1,196
Views
3,563
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from 冰之睿

Share this resource

Latest updates

  1. PistonMOTD 5.2.0 (新增Center占位符 & 一些修复)

    此版本添加了针对paper的修复,而且新增了 <center> 的占位符. 此外,现已改进了针对 MiniMessage 的支持. Changes f045b31 提交本版本 5.2.0...
  2. PistonMOTD 5.1.1 (Version fix)

    此版本修复了一个版本字符串问题,该问题会在某些平台上导致启动错误。
  3. Release 5.0.1

    从 4.x.x 版本升级之前,请阅读 5.0.0 升级指南! Changes: Update dependencies Fix special chars in config Fix...
Back
Top Bottom