差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 | ||
插件手册:betonquest:通知提示 [2020/10/25 00:40] – [自定义通知] 小小k酱 | 插件手册:betonquest:通知提示 [2020/10/25 00:48] (当前版本) – [Example 1 - Custom Notifications] 小小k酱 | ||
---|---|---|---|
行 152: | 行 152: | ||
===== 例子 ===== | ===== 例子 ===== | ||
- | ==== Example | + | ==== 例子 |
- | Assuming the following | + | 假设你的custom.yml文件如下: |
<code yaml [enable_line_numbers=" | <code yaml [enable_line_numbers=" | ||
notifications: | notifications: | ||
- | # Test Categories | + | # 测试通知类别 |
test_suppress: | test_suppress: | ||
io: suppress | io: suppress | ||
行 199: | 行 199: | ||
</ | </ | ||
- | And the following events run in order: | + | 并且下列// |
<code yaml [enable_line_numbers=" | <code yaml [enable_line_numbers=" | ||
- | # Test of Category | + | # 测试通知类别 |
notify_cat_suppress: | notify_cat_suppress: | ||
notify_cat_chat: | notify_cat_chat: | ||
行 210: | 行 210: | ||
notify_cat_subtitle: | notify_cat_subtitle: | ||
- | # Test of Category | + | # 测试通知类别 |
notify_catcus_title_sub: | notify_catcus_title_sub: | ||
notify_catcus_bossbar_red: | notify_catcus_bossbar_red: | ||
- | # Test of totally custom, needs an io | + | # 测试完全自定义参数+一些NotifyIO |
notify_cus_bossbar_green: | notify_cus_bossbar_green: | ||
notify_cus_advancement: | notify_cus_advancement: | ||
</ | </ | ||
- | A video can be found [[https:// | + | 运行效果请参考[[https:// |
- | ==== Example | + | ==== 例子 |
- | Assuming the following events run in order: | + | 假设有下列// |
<code yaml [enable_line_numbers=" | <code yaml [enable_line_numbers=" | ||
notify_cus_bossbar_countdown1: | notify_cus_bossbar_countdown1: | ||
行 228: | 行 228: | ||
</ | </ | ||
- | A video can be found [[https:// | + | 执行效果请参考[[https:// |
- | ==== Example | + | ==== 例子 |
- | If you don't want to see the '' | + | 如果你不想对玩家显示'' |
- | Example | + | custom.yml例子: |
<code yaml [enable_line_numbers=" | <code yaml [enable_line_numbers=" | ||
notifications: | notifications: |