pluginiPlugin

仓库配置

设置仓库规则

core/inventory/xxx.yml
# 仓库唯一ID
example:
  # 引用布局
  layout: "layout1"
  # 解锁进度条
  progress:
    empty: "&8|"
    full: "&a|"
    size: 35
  rule:
    # 初始解锁槽位
    unlock: 5
    # 最大空间,默认 -1 不限
    max: 64
    # 解锁槽位条件
    unlock-slot:
      # 第 5 个以上槽位解锁
      5:
        if: |-
          check player level >= 10
        lore:
          - "&7需要 10 级以上"
      # 第 10 个以上槽位解锁
      10:
        if: |
          if irus_money has 100.5 then {
            tell color "&a解锁仓库槽位成功"
            irus_money take 100.5
            true
          } else {
            tell color "&c解锁仓库槽位失败,余额不足"
            false
          }
        lore:
          - "&7需要 100.5 金币"

On this page

No Headings