🛍️公会商店

可自定义添加无限公会商品,通过Requirements 设定商品价格与条件.

  • 商品无限添加

  • 每日限购

  • 每周限购

  • 每月限购

  • 终身限购

公会商店的商品配置文件位于 Contents/config/GuildShop.yml

商品由以下节点组成

  1. 以下节点位GUI内显示物品设定,不做过多解释.

display: '商品1'
material: APPLE
amount: 1
data: 0
model: 0
lore: []
  1. requirements:商品价格,需求

  2. run:购买后的执行组

  3. buy_limit.type(可选):商品限购类型

  4. buy_limit.amount(可选):商品限购数量

示例

新建一个限购商品

items:
  shop2:
    display: '商品2'
    material: APPLE
    amount: 1
    data: 0
    model: 0
    lore:
      - '&f'
      - '&f商品内容:'
      - '&f &7- 游戏币 ×50'
      - ''
      - '&f价格: &a100贡献点'
      - '&f当前可用贡献点为: &a%points%'
      #%limit%为限购提示,若该商品没有限购则不显示
      - '%limit%'
    requirements:
      - 'guild_points;100'
    run:
      - '[console]money give %player% 50'
    #限购相关
    buy_limit:
    #  类型列表 —— Once:终身限购 Day:每日限购 Week:每周限购 Month:每月限购
      type: Day
    #  限购数量
      amount: 25

Last updated