显示页面过去修订反向链接回到顶部 本页面只读。您可以查看源文件,但不能更改它。如果您觉得这是系统错误,请联系管理员。 ====== 价格类型 ====== 每个商店物品都有特定的价格,玩家需要支付才能获得奖励。有多种价格类型可供选择。此外,可以通过Addons添加更多价格。 计算支持:每种数字价格类型都支持使用原始数字(不包括占位符)进行简单计算。例子: <code yaml [enable_line_numbers="true"]> PriceType: money Price: 120 * 64 </code> **Money** 从玩家那里拿钱。因此需要插件Vault。使用乘数时,所取的钱将自动调整并乘以该因子。为了显示玩家将支付的实际金额,只需使用 ''%price%'' 占位符。 例子: <code yaml [enable_line_numbers="true"]> PriceType: money Price: 500 </code> **Nothing** 您可以使用“PriceType: nothing”来表示玩家可以免费获得的所有内容。这对于允许您打开其他 GUI、装饰或命令的项目很有用。 例子: <code yaml [enable_line_numbers="true"]> PriceType: nothing </code> **Points** 从玩家那里获得积分。支持的积分插件如下(如果您希望支持其他插件,请给我留言): * PlayerPoints * CommandPoints * Enjin * PointsAPI * TokenEnchant * Jobs * MySQL-Tokens * VotingPlugin * Kingdoms * MySQLTokens **Items** 一个或几个物品。在此处了解有关 [[插件手册:bossshop:itemdata|物品数据]] 的更多信息。 以一项为例: <code yaml [enable_line_numbers="true"]> PriceType: item Price: - - type:DIAMOND - amount:5 </code> 包含多个物品的示例: <code yaml [enable_line_numbers="true"]> PriceType: item Price: - - type:WOOL - amount:10 - durability:14 - - type:WOOL - amount:10 - durability:11 - - type:WOOL - amount:10 - durability:4 - - type:WOOL - amount:10 - durability:5 </code> 该插件将接受所有等于给定的物品,默认情况下忽略玩家物品的lore和显示名称。如果您在价格部分设置了特定的显示名称或lore,则BossShopPro只会接受具有该特定显示名称或lore的商品。 **ItemAll** 出售一种的所有物品。 <code yaml [enable_line_numbers="true"]> PriceType: itemall Price: - type:DIAMOND RewardType: money Reward: 60 </code> 在此示例中,玩家可以一键出售所有钻石,每颗钻石可获得 60 元。 **Exp** 获取玩家的 exp 等级。使用乘数时,所采用的水平将自动适应并乘以因子。为了显示玩家将支付的实际关卡数量,只需使用 '%price%' 占位符。 例子: <code yaml [enable_line_numbers="true"]> PriceType: exp Price: 25 </code> 您想为一件商品使用不同的价格类型定义多个价格吗? 可以通过[[https://www.spigotmc.org/wiki/bossshoppro-addons/|额外的插件添加更多价格类型]] 插件手册/bossshop/price_types.txt 最后更改: 2022/02/06 16:37由 duangfafa