
如果您是从 ChestShop 的旧版本升级,请务必仔细阅读更新日志中的警告信息!
ChestShop 是一款用于管理服务器经济的出色插件。通过使用箱子和告示牌,您可以有效地创建自己的市场!简单却功能强大,并拥有大量附加组件!最初由 Acrobot 创建。
创建商店从未如此简单!借助商店保护和防卡顿等功能,您无需再为服务器的经济系统操心!
ChestShop 是最早的物理商店 Bukkit 插件,最初于 2011 年 创建!
“开箱即用”!ChestShop 通过 Vault 支持几乎所有经济类插件!
(3.9.2 以上版本还支持使用 Reserve API 的经济类插件)
一些已知的兼容和不兼容的经济类插件列表。
在报告问题之前,请先检查是否有更新的 开发版本!
该插件默认会向公共统计网站 (bstats.org) 提交关于您服务器的匿名统计数据(玩家数量、插件/服务器版本和类型),以便为开发者提供使用情况信息。如果您希望退出,可以在 PluginMetrics/config.yml 和 bstats/config.yml 文件中设置。它还具备自动更新功能,您可以在配置中关闭此功能。
ChestShop 的其他模块:
使用商店
非常简单!右键点击告示牌以购买,左键点击以出售。(你可以在配置文件中配置按键!)
如何创建玩家商店
- 在地上放置一个箱子
- 在距离箱子 1 格的位置放置一个告示牌(例如放在箱子上方)
- 在告示牌上写入:
- 第一行留空。插件会自动填入你的名字(如果你拥有 ChestShop.admin 权限,则可以创建以其他玩家名字命名的商店)
- 第二行是要购买或出售的物品数量
- 第三行是买卖价格的组合。你需要在价格旁边加上价格指示符(如 'B' - 玩家BUY(购买)时的价格 - 或 'S' - SELL(出售)价格)。价格之间用冒号分隔::
一些可能的价格组合示例:"B 5:5 S", "B 5", "S free"
- 第四行将存放物品的 ID/名称。在告示牌上写 ?,物品将根据箱子内的物品自动填充,或者你可以手持该物品后右键点击告示牌来指定。
你也可以在第四行直接填写物品的实际名称。运行 /iteminfo 命令可以查看你手中物品的名称。
生成的商店:
一个人可以从 Phoenix616 处以 10 美元的价格购买 64 个钻石,并以 5 美元的价格卖回给他
如果你想,也可以观看这个视频教程。
创建拥有无限物品数量的管理员商店
首先,你必须确保自己拥有 ChestShop.admin 权限或者是 OP。要创建管理员商店,只需在创建商店时,在告示牌的第一行写上 "Admin Shop"(可在 config.yml 中配置)。管理员商店不需要箱子!(如果放了箱子,它们会使用箱子内的物品,而不是无限的。你可以通过 FORCE_UNLIMITED_ADMIN_SHOP 配置项来改变这一行为)
翻译
最新的构建版本包含了多种语言的翻译。这些翻译随插件一起提供。如果你想帮助翻译消息,请查看 ChestShop Crowdin 项目!
命令
/iteminfo - 获取手中物品的信息
/iteminfo <id/name> - 获取指定 ID 或名称的物品信息
/shopinfo - 获取所查看商店的信息
/csgive <itemcode> [<amount>] [<player>] - 将具有唯一 ChestShop 代码的物品给予玩家
/cstoggle - 切换购买和销售的提示消息
/chestshop version - 显示 ChestShop 版本
/chestshop reload - 重新加载 ChestShop 配置文件和翻译消息。(某些功能可能不会重新加载)
/csaccess - 在拥有管理员/访问权限且通常被忽略的情况下,切换在商店中购买/销售的能力
权限节点
ChestShop.shop.* - 商店创建及购买/销售 - 包含以下内容:
ChestShop.shop.create.* - 创建所有类型的商店
ChestShop.shop.create.<itemid> - 创建特定物品类型的商店
ChestShop.shop.create.buy.<itemid> - 为某类物品创建收购商店
ChestShop.shop.create.sell.<itemid> - 为某类物品创建出售商店
ChestShop.shop.buy - 从商店购买任何物品
ChestShop.shop.buy.<itemid>* - 仅从商店购买特定物品
ChestShop.shop.sell - 向商店出售任何物品
ChestShop.shop.sell.<itemid> - 仅向商店出售特定物品
ChestShop.mod - 打开任何商店的箱子
ChestShop.admin - 打开任何商店的箱子,摧毁商店,创建(管理员)商店
完整的权限节点列表
配置
除了通过权限定义玩家可以创建哪些商店外,您还可以在自动生成的 yml 文件中配置插件的几乎所有方面。更通用的设置位于 config.yml(带有解释性注释),通过 priceLimits.yml 设置最低/最高价格,以及通过 discounts.yml 设置管理员商店折扣。
消息可以在语言文件夹中的 config 文件里为每种客户端语言进行设置。它们使用 MineDown 语法 以支持完整的组件格式。
玩家提供的实用技巧
兼容性
ChestShop 直接挂钩以下插件以提供额外功能:
当然,还包括所有兼容 Vault 或 Reserve 的经济插件。
许可证
ChestShop 的 源代码 以及分发的插件文件均根据 GNU 宽通用公共许可证 2.1 的条款授权。
指标数据
此资源会向 McStats 和 bStats 发送指标数据。如果您不希望发送任何数据,可以通过更改 PluginMetrics/config.yml 和 bStats/config.yml 文件中的设置来退出所有插件的指标数据收集。
更多信息
更多详细信息可在旧的 论坛插件主题 中找到。
遇到错误或建议?
只需在此处提交工单 这里!
如果您有 Github 账号并且具备编程知识,您也可以直接在 Github 上提交问题。(您也可以在 Issuehunt 上 资助他们!)
如果您只需要一般帮助,欢迎在评论区提问,或加入 Spigot IRC 网络的 #chestshop 频道(irc.spi.gt,网页聊天)
ChestShop 是否帮助您或您的服务器改善了体验?
如果您想以更物质化的方式感谢团队,欢迎捐赠或给 Phoenix616 买 啤酒! :)
致敬 Acrobot 的朋友:
我们相信他制作的音乐非常惊艳——您可以自行判断!
他的 SoundCloud 账号

If you are upgrading from a previous version of ChestShop please make sure to always read the warnings in the update note!
ChestShop is an awesome plugin for managing your server's economy. By using chests and signs, you can effectively create your own market! Simple, yet very powerful with lots of addons! Originally created by Acrobot.
It's never been that easy to create shops! With features like shop protection and anti-lag measures, you won't have to worry about your server's economy anymore!
ChestShop is the original physical shops Bukkit plugin originally created in 2011!
"Just works"! ChestShop supports almost all economy plugins by using Vault!
(Versions above 3.9.2 also support economy plugins using the Reserve API)
Some known compatible and incompatible economy plugins.
Please check if there are newer development builds before reporting issues!
The plugin by default submits anonymous stats about your server (player count, plugin/server version and type) to a public statistics websites (bstats.org) in order to provide the developers with usage information. If you wish to opt out, you can do so in the PluginMetrics/config.yml and bstats/config.yml files. It also features an auto-update feature, which can be turned off in the config.
Additional modules for ChestShop:
Using shops
It's easy! Just right-click the sign to buy, left-click to sell. (You can configure the buttons in the config file!)
How to create a Player Shop
- Place a chest on the ground
- Place a sign 1 block away from the chest (for example, above it)
- On the sign, write:
- Leave the first line empty. It will be automatically filled with your name by the plugin (if you have the permission ChestShop.admin then you can create shops with the names of other players)
- Second line is the amount of items to buy or sell
- Third line is a combination of buy and sell prices. You need to have a price indicator (like 'B' - price that will apply to items BOUGHT by PLAYERS - or 'S' - the SELL price) near the price - the prices are separated by a colon :
Some of the possible price combinations: "B 5:5 S", "B 5", "S free"
- The forth line will hold the id/name of the item. Write ? on the sign and the item will be autofilled with the one from the chest or you can click on the sign with the item afterwards.
Optionally you can put the actual name of the item on the forth line. You can find out the name of the item that you're holding by running /iteminfo
Resulting shop:
A person can buy 64 diamonds for 10 dollars and sell them back for 5 dollars from Phoenix616
If you want you can also take a look at this video tutorial.
Creating an Admin Shop with unlimited items**
Firstly, you've got to be sure that you've the ChestShop.admin permission or that you are an OP. To make an Admin Shop, simply put "Admin Shop" (configurable in config.yml) on the first line of the sign when creating the shop. Admin Shops do not require a chest! (If there is a chest then they will use the items within and not be unlimited. You can change that with the FORCE_UNLIMITED_ADMIN_SHOP config option)
Translations
The latest builds include translations for many languages. They are shipped with the plugin. If you want to help out translating messages check out the ChestShop Crowdin project!
Commands
/iteminfo - Get information about the item in your hand
/iteminfo <id/name> - Get information about the item with the given id or name
/shopinfo - Get information about the looked-at shop
/csgive <itemcode> [<amount>] [<player>] - Give item with a unique ChestShop code to a player
/cstoggle - Toggle buy and sell notificiation messages
/chestshop version - Display the ChestShop version
/chestshop reload - Reload the ChestShop config and translation messages. (This might not reload some features)
/csaccess - Toggles ability to buy/sell on shops while having admin/access permissions and normally being ignored
Permission nodes
ChestShop.shop.* - shop creation and buying/selling - it contains:
ChestShop.shop.create.* - create all types of shops
ChestShop.shop.create.<itemid> - create shops with a specific item type
ChestShop.shop.create.buy.<itemid> - create buy shops for a type
ChestShop.shop.create.sell.<itemid> - create sell shops for a type
ChestShop.shop.buy - buy any item from shops
ChestShop.shop.buy.<itemid>* - buy only specific items from shops
ChestShop.shop.sell - sell any item to shops
ChestShop.shop.sell.<itemid> - sell only specific item to shops
ChestShop.mod - open any shop chest
ChestShop.admin - open any shop chest, destroy stores, create (admin) shops
A full list of permission nodes
Configurations
Besides defining which shops a player can create via permission you can also configure almost any aspect about the plugin in the automatically generated yml files. The more general settings are in the config.yml (with explaining comments), setting minimum/maximum prices is done via the priceLimits.yml and setting up admin shop discounts is done via the discounts.yml.
Messages can be set in the config files in the languages folder for each client language. They use the MineDown syntax for full component support.
Useful tips by players
Compatibility
ChestShop directly hooks into the following plugins to provide additional functionality:
And of course all Economy plugins that are Vault or Reserve compatible.
License
ChestShop's source code as well as the distributed plugin file are licensed under the terms of the GNU Lesser General Public License 2.1.
Metrics
This resource sends metrics data to McStats and bStats. You can opt-out of metrics for all plugins on your server by changing the settings in the PluginMetrics/config.yml and the bStats/config.yml file if you don't want any data to be send.
More info
Even more information can be found in the old plugin thread on the forums.
Got an error or suggestion?
Simply submit a ticket here!
If you have a Github account and have coding knowledge you can also directly open an issue on Github. (You can also fund them on Issuehunt!)
If you just need general help feel free to ask in the comments or join the #chestshop channel on Spigot's IRC network (irc.spi.gt, webchat)
Has ChestShop helped you or your server?
If you want to thank the team in a more materialistic way, feel free to donate or buy Phoenix616 a beer! :)
A shout-out to Acrobot's friend:
We believe that the music he makes is really stunning - you can decide it for yourself!
His SoundCloud account
评论 0
登录后参与评分
还没有评论,来抢沙发吧