Chest Shop 箱子商店 简单易用的箱子商店插件
作者:syake
发布时间:2020年11月18日
原生版本:未知
测试支持:1.13,1.14,1.15,1.16
简单易用的ChestShop插件!
点此下载插件详细介绍
ChestShop 插件让你告别使用指令设置村民交易的繁琐!它与经济插件良好兼容,并支持原版绿宝石交易。商店会以简单易懂的方式显示物品和价格,让玩家一目了然,轻松购买和出售。管理员商店和玩家商店的标志颜色不同,方便区分。插件还引入了消费税的概念,可以将税收用于公共设施建设。
🎉
ChestShop
✨ 功能特性
- 易于理解的商店显示,物品和价格一目了然。
- 不同类型的商店标志颜色区分。
- 支持消费税,可用于公共设施建设。
- 可以创建管理员商店 (AdminShop)。
🔨 使用方法
🛒 创建出售商品的商店
- 第一行输入
[shop]。 - 第二行输入出售价格。
- 第三行留空。
- 第四行输入出售价格。
- 面对告示牌,右键点击想要出售的物品。
- 将要出售的物品放入商店箱子中。
注意:如果放入过多物品导致没有空间放置绿宝石,则无法出售。
创建管理员商店时,第一行输入 [AdminShop]。管理员商店无需放入物品或绿宝石。
💰 创建收购商品的商店
- 第一行输入
[shop]。 - 第二行输入收购价格。
- 第三行留空。
- 第四行输入收购价格。
- 面对告示牌,右键点击想要收购的物品。
- 将绿宝石放入箱子中。如果是“Economy”模式,则无需放入绿宝石。
注意:如果绿宝石过多导致没有空间放置收购物品,则无法收购。
创建管理员商店时,第一行输入 [AdminShop]。管理员商店无需放入物品或绿宝石。
🔄 创建买卖皆可的商店
- 第一行输入
[shop]。 - 第二行输入出售的物品数量。
- 第三行输入收购价格。
- 第四行输入出售价格。
- 面对告示牌,右键点击物品以完成商店创建。
- 将商品放入商店箱子,然后放入绿宝石。如果是“Economy”模式,则无需放入绿宝石。
注意:如果放入过多物品或绿宝石,导致没有空间放置交易物品,则无法交易。请预留足够的空间。
创建管理员商店时,第一行输入 [AdminShop]。管理员商店无需放入物品或绿宝石。
⌨️ 命令
/chestshop reload: 重载配置文件。
⚙️ 配置
config.yml
# vanilla: 设置为 emerald 时,货币设置为绿宝石。
# economy: 设置为 economy 时,将与经济插件同步。 需要 Vault。
mode: "vanilla"
# 设置为“vanilla”模式时的货币。
currency: "EMERALD"
# 创建商店的成本。 (Int)
creationCost: 0
# 将对买卖的财产征税。 % 指定。 (Int)
tax: 0
languages.yml
prefix: "&7[&6SHOP&7]&f "
NotFoundVault: "&cI'm currently set to \"Economy\" mode in the config, but I couldn't find a vault or an economy plugin to support the vault and couldn't start it correctly. If you do not plan to install economy plugin, please change to \"Emerald\" mode"
help: "&6/chestshop reload&8: &7Reload the config file."
reloadDone: "&6Reload is complete."
start: "&6Chest Shop has started! Have a better trading life!"
notFoundItem: "The currency was set to emerald because the item name %name% was not found."
#
# Message
#
BalanceInsufficient: "Your balance is insufficient."
boughtItem: "You just bought &a%item%&f for &6%price%&f!"
sellItem: "You sold &a%item%&f items for &6%price%&f!"
CreateShop: "Created a shop!"
DeleteShop: "Deleted a shop!"
BoughtPriceNumberOnly: "Please note that the bought price must be entered as a number"
SellPriceNumberOnly: "Please note that the sell price must be entered as a number"
ItemAmountNumberOnly: "Please note that the item amount must be entered as a number"
MinItemAmount: "The number of items must be at least 1."
MinBoughtPrice: "The bought price should be set at 1 or more."
MinSellPrice: "The sell price should be set at 0 or more."
NotSetPrice: "To create a shop, you'll need to set a price for a sell or bought, or both!"
NotSetItem: "To create a shop you need to hold the item you want to sell in your hand and right click on the sign"
ChestTop: "Can't create a shop because there is a block on one of the chests"
SignNeedFront: "The sign needs to be place on the front of the chest!"
DeleteIsOwnerOnly: "The shop can only be destroyed by the player owner!"
NotEnoughCost: "The shop creation cost is not enough."
sellOnly: "This shop is for sell only."
boughtOnly: "This shop is for bought only."
balanceInsufficient: "Your balance is insufficient."
emeraldInsufficient: "Your emerald is insufficient."
outOfStock: "This shop does not have it in stock. Please wait until it's refilled or contact us at &a%player%&f."
fullStock: "This shop is full and cannot be sell anymore. Please wait until the stock is low or contact &a%player%&f!"
adminShopOpenChest: "The Admin Shop does not need to be replenished with items."
notFoundEmerald: "Can't sell items because there are no emeralds in the shop. Please wait until the stock is low or contact &a%player%&f!"
shopNoInventorySell: "I couldn't sell it because the shop is full. Please wait until the stock is low or contact &a%player%&f!"
shopNoInventoryBought: "I couldn't bought it because the shop is full. Please wait until the stock is low or contact &a%player%&f!"
notEnoughItem: "Not enough items to sell."
notEnoughMoneyOwner: "The shop owner does not have enough money to sell."
#
# Sign
#
shop: "&e&lSHOP"
adminshop: "&c&lAdmin SHOP"
boughtShop: "B: &r%boughtprice%"
sellShop: "S &r%sellprice%"
bothshop: "B &r%boughtprice% : &r%sellprice% S"
itemName: "%name% x%amount%"
administer: "&lAdminister"
🔒 权限
chestshop.create: 允许创建商店。默认所有玩家。chestshop.delete: 允许删除其他玩家创建的商店。默认管理员。chestshop.adminshop: 允许创建管理员商店。默认管理员。chestshop.revenue.get: 获取所有税收收入。默认管理员。chestshop.revenue.view: 查看总税收收入。默认管理员。chestshop.reload: 重载配置。默认管理员。
💡 注意事项
要启用 "Economy" 模式,需要安装 Vault 和其他经济插件,如 essentials 或 The new economy。
🔮 未来计划
- 允许自定义告示牌内容。
🤝 其他
如果您有任何功能需求,请在评论区提出!我们会尽可能实现!
我们会尽力消除 bug,但无法完全避免。如果您遇到 bug,请检查插件是否为最新版本,如果问题仍然存在,请在评论区报告。感谢您的合作。
本插件使用 bStats 收集服务器指标。所有数据均已完全匿名化,IP 地址未链接到服务器。如果想禁用,请参阅 Disabling bStats。