发布 26.9.14:进服文案与默认配置优化,配置可自动重建

This commit is contained in:
SKYMirror committed 2026-09-14 01:13:11 +08:00
1 parent 1fdf17a47c
commit 18e13a861b
10 files changed
+294 -79

No files matched your search

+4 -5
View File
@@ -175,11 +175,10 @@ def build_motd(player: str, server: ServerInterface) -> Optional[RTextList]:
lines = list(config.motd_lines or [])
if not lines:
return None
parts: List[RText] = [
RText(tr("motd_header"), RColor.gold, styles=[RStyle.bold])
]
for line in lines:
parts.append(RText("\n"))
parts: List[RText] = []
for i, line in enumerate(lines):
if i:
parts.append(RText("\n"))
parts.extend(render_motd_line(line, player, server))
# Only auto-append the day footer when no line already uses {days}/{day}
days = server_days()