优先级动作组
根据优先级由大到小的顺序,判定条件是否满足,执行首个满足条件的动作组
写法
actions:
- condition: 'player.hasPermission("user.stupid")'
priority: 3 #优先级数值
list: # 动作组列表
- 'tell: you are stupid'
- condition: 'player.hasPermission("user.default")'
priority: 2
list:
- 'tell: you are nobody'
- 'console: give %player_name% diamond 1<chance:0.8>'
Last updated
Was this helpful?