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.
Can you use dynamic priceing at the same time as infinity stock? :D
How do my players use this plugin to buy/sell?
There's info on how to buy/sell stuff once you've opened the shop.
But NOTHING on how to actually open the shop.
Can't find the commands. How do my players use this?
@tubelius
Great work!
I changed "AutoPrice v4.078 for CB 1.7.10-R0.1" from beta to release as it has the newest features and no bugs have been reported. Unfortunately I'm no longer actively developing this plug-in. I'd be delighted if someone wanted to take over the project.
@TheDiamondBowl
And are you running CraftBukkit or Spigot? Do you have other plugins that are working? Could you try console commands "version", "plugins", "version AutoPrice". What do these commands return?
@tubelius
Im using aternos for my plugins but there is no commands to help me. :(
@TheDiamondBowl
Did you check the information above? There's "Commands and permissions" link above. Could you please explain very carefully what you are trying to do, what have you done so far, what exactly happened?
@roracle
No
How do I even use this plugin please I need help
Any plans on updating to Spigot 1.8? I perfer this one over the other as citizens is not required. Trying to keep everything light weight.
what about 1.7.9?
@roracle
There's this on the right side: B: AutoPrice v4.078 for CB 1.7.10-R0.1 for CB 1.7.9-R0.2 Jul 30, 2014
@tubelius
Does this currently work in 1.7.10?
sent you a pm with more info. thanks a ton for being willing to help :)
@Nemesis213
You have these?
The permissions are probably case sensitive. You said they can't use the shop, so did they manage to open the shop? What command did they use? Where did they click? What did they do? What happened? Any error? If you can't figure it out, please pastebin your permissions file.
Using the default config and the nodes (with wildcard for all shops and items) players cannot use the shop. I've messed with it for a while and I can only get it to work as OP. Any thoughts?
@MCCharlieCraft
v4.079.172.1 is for CB 1.7.2-R0.3 and AutoPrice v4.078 is for CB 1.7.10-R0.1. These require you to add new permissions for buying and selling stuff.
If I update from version 4.0.43 to 4.0.79.172.1 will it have any negative effects on items currently listed in the shop? I've not updated in a long time and I see there are quite a few config changes. Just wondering if I can drop the update on the server and just go without having to re config stuff.
@BOBNOTBUILDING
You can't. The plugin chooses "purchase price" for player based on the original price another player sold it at. If you manually add stuff into the shop, the plugin can't evaluate proper price based on amounts sold/purchased.