🎉 [精灵]CompanionsPlus v3.0.0 版本已发布 ✨ 点击查看
Skip to content

权限菜单 ​

菜单如何配置指定权限才能显示 ​

  • 主要节点

permission
notPermission(1.2.4+)

yaml
  'permission':
    index: 32
    name: '   &8[&c权限按钮&8]'
    material: REDSTONE
    lore:
      - "&f- &7玩家有权限: abc 可看见该按钮"
    isEnchant: false
    # 权限节点
    permission: 'abc'
    custom-model-data: 0
    commands:
      - '[message] say 恭喜你发现了权限按钮'
yaml
  'notPermission':
    index: 33
    name: '   &8[&c无权限按钮&8]'
    material: REDSTONE
    lore:
      - "&f- &7玩家无权限: abc 可看见该按钮"
    isEnchant: false
    # 无权限节点
    notPermission: 'abc'
    custom-model-data: 0
    commands:
      - '[message] say 恭喜你发现了无权限按钮'