配置文件详解
大约 2 分钟
配置文件详解 (config.yml)
config.yml 文件是仓库插件的核心配置文件,允许您自定义插件的各项行为和显示内容。本节将详细解释 config.yml 中的每个配置项。
1. warehouse_prices (仓库价格配置)
此部分用于定义不同容量仓库的购买价格。玩家在购买仓库时,将从其经济账户中扣除相应的金额。
warehouse_prices:
9_slot: 500
18_slot: 1500
36_slot: 30009_slot: 9 格仓库的购买价格。18_slot: 18 格仓库的购买价格。36_slot: 36 格仓库的购买价格。
您可以根据服务器的经济体系调整这些价格。
2. purchase_menu (购买菜单配置)
此部分配置仓库购买菜单的标题以及菜单中各个仓库物品的显示名称和描述。
purchase_menu:
title: "&6仓库购买"
item_9_slot:
display_name: "&a9格仓库"
lore:
- "&7价格: %price% 货币"
- "&e点击购买"
item_18_slot:
display_name: "&a18格仓库"
lore:
- "&7价格: %price% 货币"
- "&e点击购买"
item_36_slot:
display_name: "&a36格仓库"
lore:
- "&7价格: %price% 货币"
- "&e点击购买"
item_owned:
display_name_suffix: " &7(已拥有)"
lore:
- "&7你已拥有此仓库或更大容量的仓库。"title: 购买菜单的标题。支持颜色代码。item_9_slot,item_18_slot,item_36_slot: 分别配置 9 格、18 格、36 格仓库在购买菜单中的显示。display_name: 物品的显示名称。支持颜色代码。%price%占位符会自动替换为仓库价格。lore: 物品的描述(悬浮文本)。支持颜色代码。%price%占位符会自动替换为仓库价格。
item_owned: 配置当玩家已拥有某个仓库或更大容量的仓库时,菜单中物品的显示方式。display_name_suffix: 显示名称的后缀。支持颜色代码。lore: 描述文本。支持颜色代码。
