AutoPrice
AutoPrice Bukkit plugin
A shop plugin with GUI and dynamic prices.
Features
- Highly configurable.
- Good default configuration for lazy server owners (like myself).
- Designed to require minimum input from server owner.
- Commands and GUI (Graphical User Interface).
- Prices will automatically be adjusted based on supply and demand of each material.
- The shop can be accessed by any player at any location.
- The plugin keeps track of each material's stock, players can't buy more than has been sold.
- Item damage/condition is considered in price paid and stock increased. For example selling two items in 50% condition will earn you total 100% of normal price and add total one item to the stock.
Known limitations
- It takes a while for the plugin to learn the true value of each material.
- The plugin automatically saves the changed information to configuration file, so it's best to stop the server if you plan to work on the configuration file. You can however try to edit it quickly and use /ap reload.
- Materials in shop can only be rearranged by editing the configuration file. Renaming an item will however move it to the end.
- Each purchase is added to player's inventory as a new stack.
- Does not support the wildcards in permission nodes of PermissionsBukkit
Shop GUI usage
The shop GUI looks like a chest, but there are couple differences. The top window shows the items you can buy and bottom shows items you can sell. When hovering over any item, information about that material is displayed (price for example).
The amount you sell/buy depends on the type of click
- Left click = 1 unit
- Right click = 4 units
- Shift + left click = 16 unit
- Shift + right click = 64 units
To change page on top/buying part click the empty slot
- Left click = next page
- Right click = previous page
Requirements
AutoPrice is just a shop plugin. For AP to work you will also need to install an economy plugin like Essentials economy. AP does not directly support any economy plugins so you need to install Vault that works as an adapter between AP and the economy plugin of your choice.
Infinite stock
Here's an example how to configure an item to have infinite stock. Here the purchase price is 0,55 and stock is infinite. The plugin normally adjusts prices based on purchases and sales, manually adjusting stocks can cause issues with dynamic prices.
APPLE: baseSalesPriceForPlayer: 0.5 mainMaterial: APPLE subMaterial: 0 stockPerPurchasePrice: 0,55: !!float 'Infinity'
Questions & answers
- How to get stock?
- Let players sell stuff (prices will slowly normalize) or set stock manually in the configuration file (but don't expect the plugin to learn the value of the item).
- How to increase the prices?
- Let players buy all the stock and wait for the prices to increase. If all prices raise too slow, decrease updateIntervalTicks in the configuration file. Low supply & high demand = high price.
- Why does the sales price of an item drop to 0.01 as soon as I sell the first one?
- Cause that item now has sales but no purchases. High supply & low demand = low price.
How do I make it so that the stock is Infinite, but the price changes?
@madtomic
"AutoPrice v4.079.172 for CB 1.7.2-R0.3" coming up!
This plugin is amazing. Thank you tubelius for all the work you put into the project!
many errors with cb1.7.2-r0.3. too bad. this is a nice plugin. i hope you consider to support cb1.7.2-r0.3
@Wyunoliekmiename
Both of your comments seem to be from the same account.
@Wyunoliekmiename
You want me to add a command that could be used to add stock for all items? Isn't it a problem that they will all get the same price then? The plugin is designed to adjust the prices based on what players sell and buy. If you add stock manually, there's no chance the plugin can learn the true value of the items.
Hello, i already posted this under 'Wyunolikemyname' But my account for some odd reason got disabled to the point where i was unable to login to bukkit.
Please answer this comment not the other one.
Thanks for the help, Craft.
Dear, Tubelius.
Could you add some kind of feature where you can specify a default amount of starting stock/unlimited stock option in the config file, because i don't have all the time in the world to add:
' stockPerPurchasePrice:
0,55: !!float 'Infinity' '
To all of my items.
Thank you for reading my comment and maybe using my suggestion.
Greetings, Wyunolikemyname.
@smokeymcjay
Check out the plugin's documentation. I've not used it myself.
It would be good if you coulad add custom item name support for the plugin, to let us give prices for the items based on the id and name, not just id.
@Rashneish
How would I be able to make the npc open the shop GUI like what commands
@tubelius
Can you please do a update release for cb1.7.2-r0.3? this is the best cb build available and there are not enough plugins worth the switch.
@MCCharlieCraft
You could enable those MD items. AutoPrice v4.078 will be out in a week and supports matchLores configuration node. You can set it to false to make the shop ignore the lores when players sell an item.
@MCCharlieCraft
You can use price limits to achieve constant prices. AutoPrice v4.078 supports/requires permissions for selling/buying each item in each shop. It should be ready for downloading in a week.
@MrBrasta
That's an interesting idea. No, AutoPrice shop plugin does not update prices of any other shop plugins. That would be quite tricky to code.
Does this dynamic price part work with other shop plugins like Your text to link here... ?
@smokeymcjay
You can use citizens NPCs with AutoPrice in conjunction with this plugin:
http://dev.bukkit.org/bukkit-plugins/cmdnpc/
If you're looking for something more, e.g. chat integration, you'll need a dynamic pricing plugin which supports buy/sell commands:
http://dev.bukkit.org/bukkit-plugins/hyperconomy/
Use Denizen scripting for purchase/sale of more than a single item by an NPC.
Would you be able to add the use of citizens NPC's to use instead of a chest?
@tubelius
Ah okay, I didn't realize that was on bukkit's part that those are all the same.
@FTOtter
I know. The file description however has more information. Unfortunately I cannot fix that "CB 1.7.9-R0.1" until Bukkit team adds the newer one to the list where I have to pick the supported version. Until v1.8 comes out it's best to use the latest CraftBukkit, AutoPrice and Vault.
@tubelius
Uh, okay. The Recent Files on the right says that 4.043 is for CB 1.7.9-R0.1..... Can you tell me which version would be best to use?