#
# 菜单的事件处理
#
Events:
# 开启菜单事件
Open:
- requirement: 'hasPerm.trmenu.use or is.{reason}.RELOAD or is.{reason}.CONSOLE'
actions:
- 'sound: BLOCK_CHEST_OPEN-1-0'
deny-actions:
- 'sound: ENTITY_ITEM_BREAK-1-0'
- 'title: <title=&c&l权限不足><subtitle=&7&l本菜单需要权限 &6<rmenu.use &7&l方能浏览>'
- 'return'
# 关闭菜单事件
Close:
- 'sound: BLOCK_CHEST_CLOSE-1-0'