命令与权限
EmakiAttribute 的主命令是 /emakiattribute,别名为 /eattribute、/ea。玩家通常不需要直接使用这些命令;管理员主要用它们重载配置、同步属性和排查战斗计算。
命令列表
| 命令 | 说明 | 权限 |
|---|---|---|
/ea reload | 重载配置、属性、条件、伤害类型等。 | emakiattribute.reload 或 emakiattribute.admin |
| `/ea resync [player | all]` | 同步自己、指定玩家或全部在线玩家的属性状态。 |
/ea preview [player] [slot] | 预览指定玩家指定装备槽的属性贡献。 | emakiattribute.debug 或 emakiattribute.admin |
/ea dump [player] | 输出玩家属性、资源和内部状态调试信息。 | emakiattribute.debug 或 emakiattribute.admin |
| `/ea debug [player] [toggle | on | off]` |
/ea lint | 检查配置引用、属性 ID、格式和条件配置。 | emakiattribute.reload 或 emakiattribute.admin |
权限节点
| 权限 | 默认 | 说明 |
|---|---|---|
emakiattribute.use | true | 允许使用基础命令。 |
emakiattribute.reload | op | 允许重载和配置检查。 |
emakiattribute.resync | op | 允许同步属性。 |
emakiattribute.debug | op | 允许查看调试信息。 |
emakiattribute.admin | op | 管理员总权限。 |
先用哪个命令
| 场景 | 先执行 | 目的 |
|---|---|---|
| 修改了属性、伤害或条件配置 | /ea lint,再 /ea reload | 先发现配置问题,再重载。 |
| 玩家属性没有变化 | /ea resync <player> | 重新读取装备、PDC 和资源状态。 |
| 不确定装备贡献了什么属性 | /ea preview <player> <slot> | 查看单件装备的属性贡献。 |
| 战斗伤害不符合预期 | /ea debug <player> on | 查看阶段、暴击、防御、穿透和恢复。 |
| 玩家状态异常 | /ea dump <player> | 输出完整属性与资源状态。 |
常用操作示例
重载配置
text
/ea reload修改 attributes/、conditions/、damage_types/、lore_formats/ 或语言文件后使用。改动涉及在线玩家当前装备时,重载后继续执行 resync。
同步全部在线玩家
text
/ea resync all适合批量更新属性状态,例如调整了属性定义、默认值、装备解析规则之后。
预览手持装备属性
text
/ea preview Steve main_hand常用槽位:
main_handoff_handhelmetchestplateleggingsboots
打开战斗调试
text
/ea debug Steve on用于排查伤害计算阶段、暴击、防御、穿透、资源变化等问题。生产服不建议长期开启大量玩家调试。