Are you an LLM? You can read better optimized documentation at /free-plugins\ylestoastmessage\usage.md for this page in Markdown format
使用说明
把 YlesToastMessage 和 YlesLib 放进 plugins 文件夹,然后重启服务器。
首次启动后会生成 config.yml、message.yml 和 toast/ 成就配置目录。修改完成后,可以用 /ytm reload 重载。
配置文件
| 文件 / 目录 | 用途 |
|---|---|
config.yml | 基础设置 |
message.yml | 插件消息 |
toast/ | 成就消息配置 |
使用流程
- 在
toast/目录新建或修改一个.yml文件。 - 写入成就节点,设置图标、文本和样式。
- 使用
/ytm reload重载。 - 使用
/ytm send <toastId> [target]发送成就消息。
配置发送
最小示例:
yaml
welcome:
icon: EMERALD
message: "&a欢迎来到服务器|&7祝你游戏愉快"
style: GOAL
glowing: true1
2
3
4
5
2
3
4
5
发送给自己:/ytm send welcome
发送给指定玩家:/ytm send welcome Ylesss
发送给全服玩家:/ytm send welcome all
提示
控制台执行 /ytm send 时必须指定目标,例如 /ytm send welcome all。
临时构建
不想写配置时,可以直接用 build 子命令发送。
示例:/ytm build goal emerald all &a欢迎来到服务器
| 参数 | 说明 |
|---|---|
type | 成就样式,可用 task、goal、challenge |
icon | 图标材质,例如 emerald、diamond |
target | 目标玩家、all、self 或 me |
message | 成就消息文本 |
警告
CatServer、Mohist、Arclight 等没有 Paper API 的核心不建议使用。出现成就消息不显示时,优先换 Paper 测试。