Custom MOTD
一个适用于 1.7.10 Forge 的服务端模组,用于自定义服务器的 MOTD(欢迎信息)和玩家列表!


依赖项
- 自版本
1.0.1 起,UniMixins (
,
,
) 是必需的依赖项。
功能特性
- 兼容原版
- 可自定义的随机 MOTD
- 可自定义的
PlayerList(玩家列表)工具提示
新增功能
- 模组完全为服务端运行
- 回传
{playerlist} 变量,以及 {weather}、{time}、{time_of_the_day}
- 可配置服务器信息更新和热重载间隔
- 配置重载命令
/cmotd_reload
- 兼容
TabFaces (
,
,
)
- 支持其他模组的变量
首次运行时,模组将在 <server root dir>/CustomMOTD 目录下生成两个用于自定义 MOTD 所需的文件。
共有两个配置文件:
customotdlist.txt
customplayerlist.txt
本模组支持多行 MOTD(原版限制为 2 行)。要在条目中设置换行,请在 custommotdlist.txt 的条目中使用管道符 |。
custommotdlist.txt 中的每个条目都是独立的 MOTD 选项。
customplayerlist.txt 包含玩家列表工具提示的替换模板。
变量
{playercount} - 当前在线玩家数量
{maxplayers} - 服务器支持的最大玩家数量
{difficulty} - 服务器难度等级
{mcversion} - 服务器 Minecraft 版本
{radio} - 混淆的无线电条
{playerlist} - 当前在线的前 10 名玩家列表
{weather} - 显示天气,格式可配置
{time} - 显示时间,格式可配置
{time_of_the_day} - 显示一天中的时间段(例如:正午、午夜)
模组变量
{rt_bloodmoon} - Random Things 血月,格式可配置
{serene_season} - Serene Seasons 季节 目前 1.7.10 版本的 Serene Seasons 移植版已损坏
{lycanites_event} - 主世界中活跃的 Lycanites Mobs 事件,格式可配置
- TerraFirmaCraft - 各种变量:
{tfc_season}、{tfc_day_of_month}、{tfc_day_of_week}、{tfc_day_of_year}、{tfc_month}、{tfc_month_name}、{tfc_year}、{tfc_hour}、{tfc_temperature}
欢迎联系我来提议新的模组变量。
颜色代码与格式化
完全支持使用 & 的原版 Minecraft 颜色代码和格式化。
您可以通过在行首添加 # 来注释掉该行。
特殊字符 | 和 &,以及前导 # 可以通过反斜杠 (\) 进行转义。
致谢
本模组基于 p455w0rd's MOTD Customizer (
)。
许可证
LGPLv3。

Custom MOTD
A 1.7.10 Forge server-side mod to customize your server MOTD and player list!


Dependencies
- As of version
1.0.1, UniMixins (
,
,
) is a required dependency.
Features
- Vanilla Compatible
- Customizable Random MOTDs
- Customizable
PlayerList tooltip
New Features
- Mod is fully server-side
{playerlist} variable backport, {weather}, {time}, {time_of_the_day}
- Configurable server info update and hot reload intervals
- Config reload command
/cmotd_reload
TabFaces (
,
,
) compat
- Modded compat variables
On first run, the mod will generate the two required files for MOTD customization in <server root dir>/CustomMOTD.
There are 2 files used for configuration:
customotdlist.txt
customplayerlist.txt
This mod supports multiline MOTDs (2 lines as per vanilla). To set a new line, use the pipe | character in the entry in custommotdlist.txt
Each entry in custommotdlist.txt is a separate MOTD entry.
customplayerlist.txt contains the replacement template for the player list tooltip.
Variables
{playercount} - number of players currently on the server
{maxplayers} - maximum number of players the server supports
{difficulty} - server difficulty level
{mcversion} - server Minecraft version
{radio} - obfuscated radio bars
{playerlist} - list up to 10 players currently online
{weather} - displays weather, formatting is configurable
{time} - displays time, formatting is configurable
{time_of_the_day} - displays the time of the day (e.g. Noon, Midnight)
Modded Variables
{rt_bloodmoon} - Random Things Blood Moon, formatting is configurable
{serene_season} - Serene Seasons season For now the 1.7.10 port of Serene Seasons is broken
{lycanites_event} - Active Lycanites Mobs event in the overworld, formatting is configurable
- TerraFirmaCraft - Various vars:
{tfc_season}, {tfc_day_of_month}, {tfc_day_of_week}, {tfc_day_of_year}, {tfc_month}, {tfc_month_name}, {tfc_year}, {tfc_hour}, {tfc_temperature}
Feel free to reach out to me to propose new modded variables.
Color Codes and Formatting
Full support for default Minecraft color codes and formatting using &.
You can comment out a line by prefixing it with #.
Special characters | and &, as well as leading # can be escaped with a backslash (\).
Credits
This mod is based on p455w0rd's MOTD Customizer (
).
License
LGPLv3.

评论 0
登录后参与评分
还没有评论,来抢沙发吧