AdvancedShop - 一个动态定价、直观易用且功能丰富的服务器商店;支持经验值和货币
~ 由 woebegone1 在 请求的插件
[概述]
- 易于使用的服务器商店,价格在买卖时发生变化
- 购买/出售告示牌
- 支持使用 ListBuilder/WhatIsIt 来显示模组物品名称(Forge)
- 支持经验值或货币
- 买卖可设置不同的价格公式
- 价格可基于可配置的时间段进行计算
- 每个商店物品可设置多个名称
- 可向商店添加或移除物品
- 商店可设置“库存”,仅在库存充足时出售。
- 可记录交易日志
[命令与权限]
| 命令 | 描述 | 权限 |
| /advsell <item/hand> *<amount> | 出售指定数量的物品 | advshop.sell |
| /sellall | 出售背包中的所有物品 | advshop.sellall |
| /advbuy <item> <amount> | 购买指定数量的物品 | advshop.buy |
| /value <item/hand> | 查看物品的价格/库存信息 | advshop.value |
| /hand | 显示你手中持有的物品 | advshop.hand |
| /advshop help | 列出该插件的所有命令 | 无 |
| /advshop reload | 重新加载插件 | advshop.reload |
点此查看如何设置命令别名(例如使用 /sell)
[安装方法]
- 将 AdvShop.jar 以及下方的依赖文件下载至你的 plugins 目录
- 重启服务器,或使用插件管理器加载这些插件
- 为玩家添加你认为合适的权限(如上所列)
- 请参阅下方的配置教程以获取更多信息
适用于 Forge 模组服务器:
使用 ListBuilder 为 AdvShop 生成物品列表。
- 只需将生成的 names.yml 复制到 AdvShop 文件夹中,它将在启动时自动转换
- 记得在 config.yml 中将 "idlist" 设置修改正确
[依赖项]
点击Vault 此处以获取提供经济集成的插件。
还需要某种经济插件
[配置教程]
大多数配置都可以通过 config.yml 完成
[买卖公式]
这个动态商店插件允许您自定义买卖的定价公式。默认公式如下:
- 如果某物品售出量很大但购买量很小,则该物品价格较低
- 如果某物品的售出量与其他物品相比很少,则该物品价格较高。
- 卖出价格始终是买入价格的一半
如果在 config.yml 中将 "require-stock" 设置为 true,以下是一个示例公式:
constant/(sold-bought)
其中 constant 是您选择的任意数值,例如 1000
占位符:
- bought
- sold
- volume
- totalsold
- totalbought
- totalvolume
基本 JavaScript 语法也可在公式中使用
default-sold 和 default-bought 的值是指该物品首次被卖出/买入后的库存量。
建议让买入公式返回的值大于卖出公式。
[使用经验值(EXP)]
只需在 config.yml 中将 use-exp-instead 改为 true 即可
[添加/移除物品]
如果你想要自定义的物品列表,需要复制 idlist.yml 并进行修改
完成后,记得在配置文件中将 idlist 更改为指定新文件。
[记录交易日志]
交易会自动记录到 history.yml 中。
要禁用 - 将 keep-history-days 设置为 0
要永久保留 - 将 keep-history-days 设置为 -1
[禁用自动物品匹配]
在 config.yml 中将 item-similarity-match 设置为 0
[GUI 商店]
有许多插件允许你创建自己的图形界面:
- Chest Commands GUI
- 或者进行搜索
使用 ChestCommandsGUI,你可以在点击方块时执行命令(例如 /advsell)。
[告示牌]
AdvShop 的最新版本允许创建购买和出售告示牌,以下是一个示例:
AbsintoJ 制作的葡萄牙语视频
[其他项目]
[v0.2.0 待办事项]
如果您希望添加任何额外功能,请告诉我
- 多线程的买卖命令
- 买卖告示牌保护
-
添加为特定物品设置固定价格的选项
-
物品的最低/最高买卖价格
-
搜索命令
-
根据商店价值修复物品的命令
-
根据商店价值熔炼物品的命令
-
附魔书
-
修复购买无库存物品时的异常
-
完成为物品添加最低/最高价格的功能
-
列出最便宜/最昂贵的物品
-
购买某些物品时的冷却时间
-
MySQL
-
操作?
-
玩家间交易(而非仅支持玩家与服务器间的交易)
-
购买实体
AdvancedShop - A dynamically priced server shop which is fairly intuitive and versatile; supporting both experience and money
~ Plugin requested by woebegone1 on
[Overview]
- A simple to use server shop where prices change when you buy/sell
- Buy/Sell signs
- Support for ListBuilder/WhatIsIt for modded item names (Forge)
- Supports experience or money
- Can have different formulas for buy and sell
- You can have the prices based on a configurable time period
- Allows multiple names per shop item
- Add or remove items from the shop
- Shops can have "Stock" and only sell if they are in stock.
- Can log transactions
[Commands|Permissions]
| Command | Description | Permission |
| /advsell <item/hand> *<amount> | Sells a given amount of an item | advshop.sell |
| /sellall | Sell everything in your inventory | advshop.sellall |
| /advbuy <item> <amount> | Buys a given amount of an item | advshop.buy |
| /value <item/hand> | Gives info on price/stock of item | advshop.value |
| /hand | Tells you what item you are holding | advshop.hand |
| /advshop help | Lists all the commands for the plugin | None |
| /advshop reload | Reloads the plugin | advshop.reload |
See here for setting up command aliases (e.g. using /sell)
[Installation]
- Download AdvShop.jar as well as the dependencies below into your plugins directory
- Restart your server or load the plugins using a plugin manager
- Add the permissions that you see fit (listed above) to players
- See the configuration tutorial below for further information
For forge modded servers:
Use ListBuilder to generate a list of items for AdvShop.
- Simply copy the generated names.yml into the AdvShop folder and it will convert it on startup
- Remember to change the "idlist" setting the the config.yml
[Dependencies]
Click here for Vault which provides economy integration.
An economy plugin of some sort is also required
[Configuration Tutorial]
Most configuration can be done through the config.yml
[Buy/Sell Formula]
This dynamic shop plugin allows you to specify your own formula for buying and selling. The default formula does the following;
- Items are cheaper if a lot of that item has been sold, but not much has been bought
- Items are more expensive if not much of it has been sold compared to other items.
- The sell price is always half of the buy price
If you have "require-stock" set to true in the config.yml, here is an example formula:
constant/(sold-bought)
where constant is some number of your choice e.g. 1000
Placeholders:
- bought
- sold
- volume
- totalsold
- totalbought
- totalvolume
basic javascript will also work in the formula
The default-sold and default-bought values are the stock of an item after it has been sold/bought for the first time.
It is a good idea to have the buy formula return a larger value than the sell.
[Using EXP]
Simply change use-exp-instead to true in the config.yml
[Adding/Removing items]
If you want to have a custom item list, you will need to copy idlist.yml and modify it
Once you have done that, remember to change the idlist in the config to specify the new file.
[Logging transactions]
Transactions are automatically logged to history.yml.
TO DISABLE - set keep-history-days to 0
TO KEEP FOREVER - set keep-history-days to -1
[Disable auto item matching]
Set item-similarity-match to 0 (in config.yml)
[GUI shop]
There are many plugins out there which allow you to create your own GUI's:
- Chest Commands GUI
- Or do a search
With ChestCommandsGUI you can execute commands (e.g. /advsell) when a block is clicked.
[Signs]
The latest version of AdvShop allows for the creation of Buy and Sell signs, here is an example:
- The first line of the sign ([ADVBUY] or [ADVSELL]) is completely configurable through the language setting
- The last line shows the current stock levels for the item
- Shift+R-Click to trade a stack at a time

Portuguese Video by AbsintoJ
[Other Projects]
[TODO for v0.2.0]
Please tell me if you would like any additional features added
- Threaded buy and sell commands
- buy/sell sign protection
- Add option to set static prices for certain items
- Item min/max buy/sell values
- Search command
- Command to repair items based on shop value
- Command to smelt item based on shop values
- Enchantment books
- Fix exception with buying something with no stock
- Finish adding min/max prices for items
- List cheapest/most expensive items
- Cooldowns for buying certain items
- MySQL
- actions?
- player-player trading (rather than just player-server trading)
- buy entities
评论 0
登录后参与评分
还没有评论,来抢沙发吧