### **警告!** [Vault](https://www.spigotmc.org/resources/vault.34315/) 和一个权限插件是 **必需的**!我推荐 [LuckPerms](https://www.spigotmc.org/resources/luckperms.28140/)。
## 指令和语法
### `/buy` 命令的语法
所有以下子命令都需要 `itemshop.buy` 权限节点。
| 指令语法 |
描述 |
权限节点 |
help |
显示 buy 的帮助 |
|
hand [整数数量 (1)] |
购买您当前持有的物品类型 |
itemshop.buy.hand |
<Material 材料> [整数数量 (1)] |
购买您指定的物品类型 |
itemshop.buy.material |
multipliers |
查看活动倍率 |
itemshop.multipliers |
### `/cost` 命令的语法
所有以下子命令都需要 `itemshop.buy.cost` 权限节点。
| 指令语法 |
描述 |
权限节点 |
help |
显示 cost 的帮助 |
|
[Material 材料 (*)] [整数数量 (1)] |
查看材料的购买成本 |
itemshop.buy.cost |
set <Material 材料> <double 成本> or /setcost ... |
设置材料的裸购成本 |
itemshop.buy.cost.set |
\*: 如果省略并且指令发布者是玩家,`material` 将是玩家当前持有的物品类型。
### `/sell` 命令的语法
所有以下子命令都需要 `itemshop.sell` 权限节点。
| 指令语法 |
描述 |
权限节点 |
`` or help |
显示 sell 的帮助 |
|
all|inventory |
出售您物品栏中所有可出售的物品 |
itemshop.sell.inventory |
hand [整数最大数量 (2147483647)] |
出售您当前持有的物品类型 |
itemshop.sell.hand |
material <Material 材料> [整数最大数量 (2147483647)] |
出售您指定的物品类型 |
itemshop.sell.material |
multipliers |
查看活动倍率 |
itemshop.multipliers |
<query> |
搜索 query 的结果 |
|
### `/worth` 命令的语法
所有以下子命令都需要 `itemshop.sell.worth` 权限节点。
| 指令语法 |
描述 |
权限节点 |
help |
显示 worth 的帮助 |
|
[Material 材料 (*)] [整数数量 (1)] |
查看材料的出售价值 |
itemshop.sell.worth |
set <Material 材料> <double 价值> or /setworth ... |
设置材料的裸出售价值 |
itemshop.sell.worth.set |
\*: 如果省略并且指令发布者是玩家,`material` 将是玩家当前持有的物品类型。
### `/itemshop` 命令的语法
所有以下子命令都需要 `itemshop.reload` 权限节点。
| 指令语法 |
描述 |
权限节点 |
|
重新加载配置文件 |
itemshop.reload |
## 默认配置文件
### 默认 `item-values.yml`
```yaml
# Item values for Itemshop - item-values.yml
# Example: Players can sell stone for 0.8 each and buy it for 1.0 each.
stone:
sell: 0.8
buy: 1.0
# Example: Players can sell diorite for 3 but they cannot buy it.
diorite:
sell: 3.0
buy:
# Example: Players can buy andesite for 7 each but they cannot sell it.
andesite:
sell:
buy: 7.0
# Items not here cannot be sold or bought by default.
```
### 默认 `multipliers.yml`
```yaml
# Multipliers for Itemshop - multipliers.yml
# Example: Players with the permission "itemshop.m.free" will buy everything for free.
# (Item's buy cost is multiplied with "0.0".)
free: # This is the name used in permissions
name: Communism # This is the name used in human readable texts
buy: 0.0
sell: 0.0
# Another example: Player with the permission "itemshop.m.tax" will sell items for 10% less and buy items for 10% more.
# (Item's buy cost is multiplied with "1.1" and sell value is multiplied with "0.9".)
tax:
name: Tax
sell: 0.9
buy: 1.1
# Players without any of these permissions will sell and buy items with the default multiplier of "1.0".
# If you don't add a sell or buy for a modifier it will be assumed to be 1.
```
**重要提示:** 使用 `sell worth set ...`, `buy cost set ...` 命令或其别名之一将删除配置文件中的注释。