Skip to content

Message Configuration

Noogear edited this page Mar 19, 2026 · 2 revisions

message.yml — 消息模板

MiniMessage 格式的消息配置,所有占位符使用 <placeholder> 语法。

完整配置

# 消息前缀
prefix: "<gold>[WarriorView] "

# 重载消息
reload:
  smart-complete:   "<green>智能重载完成 <gray>(<elapsed>ms)"     # <elapsed>
  module-updated:   "  <gray><module>: <yellow>已更新"             # <module>
  module-unchanged: "  <gray><module>: <dark_gray>无变更"          # <module>
  complete:         "<green>已重载 <yellow><target> <gray>(<elapsed>ms)"  # <target> <elapsed>

# 列表消息
list-messages:
  usage:             "<yellow>用法: <gray>/wv list <white><actions|mappings|indicators|animations>"
  actions-header:    "<green>已注册动作 <gray>(<count>)"           # <count>
  mappings-header:   "<green>事件映射脚本 <gray>(<count>)"         # <count>
  indicators-header: "<green>指示器标签 <gray>(<count>)"           # <count>
  animations-header: "<green>动画定义 <gray>(<count>)"             # <count>
  entry:             "  <aqua>• <name>"                            # <name>

# 信息面板
info:
  header:         "  <gold><bold>WarriorView</bold> <yellow><version>"  # <version>
  separator:      "  <dark_gray>─────────────────────────────"
  animations:     "  <gray>动画定义: <white><count>"               # <count>
  indicators:     "  <gray>指示器标签: <white><count>"             # <count>
  mappings:       "  <gray>事件映射: <white><count>"               # <count>
  actions:        "  <gray>注册动作: <white><count>"               # <count>
  number-formats: "  <gray>数字格式: <white><count>"               # <count>
  char-replaces:  "  <gray>字符替换: <white><count>"               # <count>

占位符说明

占位符 出现位置 说明
<elapsed> reload 耗时(毫秒)
<module> reload 模块名称
<target> reload 重载目标
<count> list-messages, info 数量
(无占位符) list-messages.usage /wv list 裸命令时显示的用法提示
<name> list-messages 条目名称
<version> info 插件版本号

Clone this wiki locally