Skip to content
On this page

猹の礼盒Pro

主配置

yml
############################
#         插件验证          #
############################
apiKey: "apiKey"

随机礼包配置

yml
# 自定义礼盒组名称
随机物品礼盒:
  title: "随机物品礼盒"
  type: random
  # 需求说明:开启前至少需要的背包空格
  inv-free-size: 1
  items:
    红宝石:
      # 权重
      weight: 30
      # 界面展示物品
      display: "MM#红宝石#10"
      # 最终发放物品
      items:
        - "MM#红宝石#10"
      # 选中后执行动作
      commands:
        - "console:执行随机礼盒奖励动作"
    绿宝石:
      weight: 30
      display: "NI#绿宝石#1"
      items:
        - "NI#绿宝石#1"
      commands:
        - "console:执行随机礼盒奖励动作"
    金币1000:
      weight: 40
      display: "NI#金币1000#1"
      items: [ ]
      commands:
        - "console:执行随机礼盒奖励动作"

指定礼盒配置

yml
# 自定义礼盒组名称,对应NI物品库ID
指定礼盒:
  title: "指定礼盒"
  type: select
  # 需求说明:开启前至少需要的背包空格
  inv-free-size: 1
  items:
    红宝石:
      # 界面展示物品
      display: "MM#红宝石#10"
      # 最终发放物品
      items:
        - "MM#红宝石#10"
      # 选中后执行动作
      commands:
        - "console:执行指定礼盒奖励动作"
    绿宝石:
      display: "NI#绿宝石#1"
      items:
        - "NI#绿宝石#1"
      commands:
        - "console:执行指定礼盒奖励动作"
    金币1000:
      display: "NI#金币1000#1"
      items: [ ]
      commands:
        - "console:执行指定礼盒奖励动作"

语言配置

yml
格子不足: "&e礼盒系统 &8» §f背包空间不足,起码需要 {amount} 格!"
重载插件: "&e礼盒系统 &8» §f插件重载成功"
unselect: "未选择"
select: "已选择{item}"
unselect-item: "未选择物品"