商城 shop.yml
需要 Vault 与任一经济插件。只有 shop.enabled: true 的时装会上架,也只会显示含有可售时装的分类。
menus/shop.yml
category-title: '&8时装商城 · 选择等级'
category-rows: 3
shop-title: '&8商城 · {category} &7({page}/{pages})'
shop-rows: 6
items-per-page: 45
item-lore:
- ''
- '&7价格:&e{price} 金币'
- '{status}'
- ''
- '{stats}'
status:
owned: '&a你已永久拥有这件时装'
available: '&e左键点击购买'
disabled: '&c目前无法购买'
时装上架:
star_wings:
# ...
shop:
enabled: true
price: 1000
| 保护机制 | 说明 |
|---|---|
| 并发保护 | 上一笔购买处理完之前不会重复扣款 |
| 自动退款 | 扣款成功但写入失败时自动退还 |
| 已拥有检查 | 已拥有的时装无法重复购买 |
| 权限控制 | 需要 cloudcosmetics.shop |
时装怎么上架见商城价格。