一个通过命令使用的简单全局商店。
要使用 GlobalShop,你必须安装以下经济插件之一:
- iConomy 4、5 或 6
- BosEconomy 6 或 7
- Essentials Economy 2.2.17+
- MultiCurrency
系统将自动使用最先找到的经济插件。GlobalShop 内置了 Nijikokun 的 Register API 以实现经济功能。
Globalshop v0.8 现在支持(且需要)Vault
功能特性
- 可从任何地方访问的商店。
- 添加可自定义的物品名称。
- 可在配置文件中定义伤害值/颜色。例如,你可以出售 black_wool。
- 考虑物品的耐久度来计算售价。
- 设置卖出比率(sellratio)。这定义了出售物品时你能获得的金钱比例,默认为 80%。
- 所有命令均可通过在 plugin.yml 中重新配置别名来自定义命名 方法指南。
权限节点
对于 SuperPerms,存在父级权限:globalshop.trade.* 和 globalshop.admin.*
- 'globalshop.trade.buy' -> 允许使用 /buy 和 /price
- 'globalshop.trade.sell' -> 允许使用 /sell 和 /checksell
- 'globalshop.admin.reload' -> 允许使用 /shop reload
命令列表
- /price (name|id) -> 显示购买 name|id 所需支付的价格
- /buy (name|id) [amount] -> 购买 name|id(可选数量)
- /checksell -> 显示你手中物品出售时可获得的金额
- /sell -> 出售你手中的物品
- /sell <quantity> -> (v0.8) 出售指定数量的手中物品(仅适用于手持堆叠)
- /sell all -> (v0.8) 出售背包中所有相同类型的物品
- /shop reload -> 重载 GlobalShop 的配置
配置说明
目前,你必须在配置文件中设置所有价格。具体操作请参见:
配置指南
计划中的功能
- 通过命令设置价格
- 生成 HTML 文件以查看所有价格
更新日志
0.91
- 修复:禁止在创造模式下出售物品
- 新增:Metrics 支持(更多信息请参阅 )
0.9 (Zarius)
- 修复:非堆叠物品在购买多个时不再错误堆叠
- 新增:现在会检查可用的背包空间(这样如果你的购买无法放入背包,就不会浪费金钱)。
0.8 (Zarius)
- 支持 Vault
- 新增 /sell <quantity>(仅限当前手持堆叠)
- 新增 /sell all(出售背包中所有同类物品)
0.7b2 (Zarius 修改版)
- 适配新版 Bukkit 的修复
- 代码清理
- 开始编写使用经验值进行买卖的代码(尚未完成)
GlobalShop 使用 Metrics 收集匿名使用统计数据(了解更多)。自 v0.91 版本起启用。
A simple global shop which is used through commands.
To use GlobalShop you must install one of the following Economy plugins:
- iConomy 4,5 or 6
- BosEconomy 6 or 7
- Essentials Economy 2.2.17+
- MultiCurrency
The first found Economy plugin is used. Economy functions are used through Nijikokun's Register API which is implemented in GlobalShop.
Globalshop v0.8 now supports (and requires) Vault
Features
- Shop that can be accessed from everywhere.
- Add customizable item names.
- Damage/Color can be defined in config. So you can sell for example black_wool.
- Considers the durability of an item to calculate the selling price.
- Set the sellratio. This defines how much money you get for selling an item. Default is 80%.
- All commands can be renamed to your wish by re-configuring the aliases in plugin.yml HowTo.
Permissions
There are ParentPermissions for SuperPerms: globalshop.trade.* and globalshop.admin.*
- 'globalshop.trade.buy' -> Allow /buy and /price
- 'globalshop.trade.sell' -> Allow /sell and /checksell
- 'globalshop.admin.reload' -> Allow /shop reload
Commands
- /price (name|id) -> Show the price you must pay to buy name|id
- /buy (name|id) [amount] -> Buy name|id (with optional amount)
- /checksell -> Shows the money you would get for the item you are holding
- /sell -> Sells the item you are holding
- /sell <quantity> -> (v0.8) Sell a given quantity of the item held (only applies to stack in hand)
- /sell all -> (v0.8) Sell all items of the same type throughout inventory
- /shop reload -> Reloads the config of GlobalShop
Configuration
At moment you must setup all prices in the config file. This is explained here:
Configuration
Planned Features
- Setting up prices with commands
- Writeout of a HTML-File where all prices can be viewed
Changelog
0.91
- Fix: disallow selling in Creative mode
- Add: Metrics support (see for more info)
0.9 (Zarius)
- Fix: non-stackable items no longer stack when buying multiple
- Added: now checks for available inventory space (so you don't waste money if your purchase doesn't fit).
0.8 (Zarius)
- Support for Vault
- Added /sell <quantity> (from current held stack only)
- Added /sell all (sells all of the same item from your inventory)
0.7b2 (modifications by Zarius)
- fix for new Bukkit Version
- code cleanup
- start of coding for buy/sell with exp (doesn't work yet)
GlobalShop uses Metrics for anonymous usage stats (learn more). From v0.91 only.
评论 0
登录后参与评分
还没有评论,来抢沙发吧