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.
<<reply 2200401="">>
thanks~
@wclssdn
Hey. AutoPrice is just a shop plugin. You will need to install an economy plugin like Essentials economy too. 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. Hope this helps.
[23:44:21 INFO]: Starting minecraft server version 1.7.9
[23:44:21 INFO]: Loading properties
[23:44:21 INFO]: Default game type: SURVIVAL
[23:44:21 INFO]: Generating keypair
[23:44:22 INFO]: Starting Minecraft server on :25565
[23:44:22 INFO]: This server is running CraftBukkit version git-Bukkit-1.7.9-R0.1-b3084jnks (MC: 1.7.9) (Implementing API version 1.7.9-R0.1)
[23:44:22 INFO]: [WorldEdit] Loading WorldEdit v5.6.2
[23:44:22 INFO]: [Vault] Loading Vault v1.4.1-b436
[23:44:22 INFO]: [LogIt] Loading LogIt v0.6.7-b661
[23:44:22 INFO]: [AutoPrice] Loading AutoPrice v3.086
[23:44:22 INFO]: [Vault] Enabling Vault v1.4.1-b436
[23:44:23 INFO]: [Vault] [Permission] SuperPermissions loaded as backup permission system.
[23:44:23 INFO]: [Vault] Enabled Version 1.4.1-b436
[23:44:23 WARN]: * SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
[23:44:23 WARN]: The server will make no attempt to authenticate usernames. Beware.
[23:44:23 WARN]: While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
[23:44:23 WARN]: To change this, set "online-mode" to "true" in the server.properties file.
[23:44:23 INFO]: Preparing level "world"
[23:44:23 INFO]: Preparing start region for level 0 (Seed: -8340930640525795680)
[23:44:24 INFO]: Preparing spawn area: 16%
[23:44:24 INFO]: ----- Bukkit Auto Updater -----
[23:44:24 INFO]: It appears that you're running a Beta Build, when you've specified in bukkit.yml that you prefer to run Recommended Builds.
[23:44:24 INFO]: If you would like to be kept informed about new Beta Build releases, it is recommended that you change 'preferred-channel' in your bukkit.yml to 'beta'.
[23:44:24 INFO]: With that set, you will be told whenever a new version is available for download, so that you can always keep up to date and secure with the latest fixes.
[23:44:24 INFO]: If you would like to disable this warning, simply set 'suggest-channels' to false in bukkit.yml.
[23:44:24 INFO]: ----- ------------------- -----
[23:44:25 INFO]: Preparing spawn area: 81%
[23:44:25 INFO]: Preparing start region for level 1 (Seed: -8340930640525795680)
[23:44:26 INFO]: Preparing spawn area: 97%
[23:44:26 INFO]: [WorldEdit] Enabling WorldEdit v5.6.2
[23:44:26 INFO]: WEPIF: Using the Bukkit Permissions API.
[23:44:26 INFO]: [LogIt] Enabling LogIt v0.6.7-b661
[23:44:27 INFO]: [AutoPrice] Enabling AutoPrice v3.086
[23:44:27 ERROR]: AutoPrice: No Vault found! This plugin doesn't work without it and will be disabled..
[23:44:27 INFO]: [AutoPrice] Disabling AutoPrice v3.086
[23:44:27 INFO]: Server permissions file permissions.yml is empty, ignoring it
[23:44:27 INFO]: Done (4.737s)! For help, type "help" or "?"
why not found Vault?
@danielm59
Hey. You can actually set "stockAmountMinObjective" for sub materials in all releases. It was missing from the documentation, but I added it now.
It would be nice if the stock objective was per item or per shop, This will help with common items hitting the min price too quickly while rare items get really high.
@danielm59
Newest version (R: AutoPrice version 3.082 for 1.7.4 May 04, 2014) is compatible with v1.7.2. If you encounter any issues, please submit a ticket.
Does this work with 1.7.2?
@McyD1
I'm adding a ready configuration file for Bukkit v1.6. It can be downloaded from here soon.
@McyD1
There's currently no AP version for v1.6.4. Try deleting all v1.7 items from the configuration file (while server is off) or delete whole configuration file and use version "A: AutoPrice version 3.054.152.016 for CB 1.5.2-R1.0 Apr 16, 2014".
is this really bugged or does it not work on 1.6.4?
@chiopas
Hey. The prices are adjusted based on supply and demand (sales and purchases). Players have now sold that item, but no-one ever bought it. The plugin is kinda "shocked" by this and drops the sales price to minimum. It is a feature. The prices will start to settle/normalize when there are more trades for that item.
Why is price droping to 0.01 after one item sold?
no language file? :(
@maxlehot1234
Hey, I finally have a version coming up for 1.7.9-R0.1 with the support for multiple shops. Have fun and/or report bugs.
Can you add the possibilty to multiple shop per rank?
xample: shop for VIP: ap.shop.vip
shop for donator: ap.shop.donator
That should be awesome
@valentin001
Version for v1.5.2 is coming up! Have fun and/or report bugs. I don't have too much time to spend on this project, but when I have spare time I'll try to work on the things that have been reported.
Are there opportunities to make it available for 1.5.2?
this is the kind of shop plugin i've been looking for!
but this is the only caveat that keeps me from using it: Items sold lose their enchantments, name and other meta data
my server uses mythicdrops and itemattributes, so that just wont do.
also, wouldnt it be better to log to a mysql or sqlite database instead of a flatfile? that way you can store metadata and item values.
a suggestion:
Multiple tabs, so more items can be listed, it would look like the creative inventory GUI