# PistonMOTD
### [](https://discord.gg/8Qk2mtUDFf) [](https://ko-fi.com/alexprogrammerde)
### 
## 特性
* 自定义玩家计数工具提示
* 自定义在线玩家和最大玩家计数
* 随机 MOTD
* 自定义客户端已过时消息。 你可以强制始终发生。
* 随机 favicon
* 占位符 (可通过api扩展)
* 隐藏你的玩家计数
* 非常容易理解的配置
* 模块化 (你可以启用/禁用所有功能)
* TPS 占位符
* RGB 支持
* Luckperms 前缀支持
兼容外部 MOTD 插件。(无法保证它能与所有 MOTD 插件一起工作。)
## API
确实可以创建和执行外部插件自己的解析器。要注册,你需要一个实现 [PlaceholderParser](https://github.com/AlexProgrammerDE/PistonMOTD/blob/master/pistonmotd-api/src/main/java/net/pistonmaster/pistonmotd/api/PlaceholderParser.java) 的类,并在 [PlaceholderUtil](https://github.com/AlexProgrammerDE/PistonMOTD/blob/master/pistonmotd-api/src/main/java/net/pistonmaster/pistonmotd/api/PlaceholderUtil.java) 上使用 [#registerParser(PlaceholderParser parser)](https://github.com/AlexProgrammerDE/PistonMOTD/blob/943959fafb27e68ebfa75462b35bf34bc6923e2b/pistonmotd-api/src/main/java/net/pistonmaster/pistonmotd/api/PlaceholderUtil.java#L40)进行注册。
这里有一个例子:
[ServerPlaceholder](https://github.com/AlexProgrammerDE/PistonMOTD/blob/master/pistonmotd-bungee/src/main/java/net/pistonmaster/pistonmotd/bungee/ServerPlaceholder.java)
[注册](https://github.com/AlexProgrammerDE/PistonMOTD/blob/943959fafb27e68ebfa75462b35bf34bc6923e2b/pistonmotd-bungee/src/main/java/net/pistonmaster/pistonmotd/bungee/PistonMOTDBungee.java#L58)
而且这些东西可能会派上用场:
[Javadoc](https://www.pistonmaster.net/PistonMOTD/apidocs/index.html)
## 统计数据
[](https://bstats.org/plugin/bungeecord/PistonMOTDBungee/8968)
[](https://bstats.org/plugin/bukkit/PistonMOTDBukkit/9100)
[](https://bstats.org/plugin/velocity/PistonMOTDVelocity/14316)
## Discord
[](https://discord.gg/8Qk2mtUDFf)
祝你玩得开心! ;)