> For the complete documentation index, see [llms.txt](https://arasple.gitbook.io/trhologram/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://arasple.gitbook.io/trhologram/chinese/hologram/actions/priority-actions.md).

# 优先级动作组

> 根据优先级由大到小的顺序，判定条件是否满足，执行首个满足条件的动作组

## 写法

```yaml
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>'
```
