效果
标签
BuffSystem
字数
190 字
阅读时间
1 分钟
自定义效果
于 plugins/BuffSystem/effects 文件夹下任意一个YAML 文件
yaml
#效果key
example-attribute:
#效果类型
type: attribute
attributes:
## 字符串内联函数
- "移动速度: {calculate '1000+100 * {level}'}"
接下来逐一讲解
效果 key [example-attribute]
效果的唯一标识符, id
效果类型 [type]
BuffSystem默认提供了 3 种效果类型
- attribute 属性
- potion 原版药水
- permissions 权限
具体如何使用见下三节
其它
BuffSystem自带的 3 个效果类型的参数, 支持所有占位符,字符串内联函数,数字运算 甚至支持传参
使用
见 Buff