Skip to content

backpack.yml:战术背包档位

背包是单次入场权益。玩家购买的是下一次准入要消费的档位,不是永久容器;扣款结果不确定时系统不会自动退款或重复发货。

固定结构与字段

档位 ID 必须且只能smallmediumlargehuge,不能增删或改名;根节点也只能有 default-tiertiers

路径类型 / 默认示例约束与含义生效
default-tierID / small默认选择,必须引用四个档位之一热重载
tiers.<id>.width整数 / 4网格宽,1..4热重载;进行中的游戏服下一次准入使用
tiers.<id>.height整数 / 2..6网格高,1..6同上
tiers.<id>.price数字 / 500.0Vault 扣款金额,必须 >= 0热重载
tiers.<id>.priority正整数 / 10档位顺序,四档不可重复热重载

priority 档位的宽和高不得小于低档,面积必须严格更大,价格不得更低。商店 tabs.backpack.entries 必须一一陈列这四个 ID,售价只取本文件,不能在 shop.yml 重复写。

完整默认配置

yaml
default-tier: small

tiers:
  small:
    width: 4
    height: 2
    price: 500.0
    priority: 10
  medium:
    width: 4
    height: 3
    price: 1500.0
    priority: 20
  large:
    width: 4
    height: 4
    price: 4000.0
    priority: 30
  huge:
    width: 4
    height: 6
    price: 10000.0
    priority: 40

常见错误与验证

  • 添加 starter、漏掉 huge、额外写 name 都会因严格键校验失败。
  • priority 相同、容量倒退或高档更便宜都会失败。
  • 修改后执行 /fkescape reload;在大厅打开 /fkescape shop,核对四档价格;用测试账号购买一次并报名,确认权益只消费一次且背包尺寸正确。