MineStock
MineStock
A young plugin which allows to modify the buy/sale prices in shops managed by BetterShops in a automatic way according to purchases and blow.
To install the plugin you need to put the jar file in the plugin directory.
Usage
With an existing shop or a new one, you can buy or sell items and the plugin will change the price of the item automatically.
A broadcast message appear every time there is a transaction.
MineStock require LiveEconomy to be disabled at least in the shops
Features
- The prices of items are changed automatically every purchase or sale in shops created with Better Shops.
- A broadcast message is posted in order to inform of the change of the buying and selling prices and the local or global stock of an object in a shop. You can customize them in the config file.
- You can customize the equations used to calculate the prices with JFEP.
- The selling price is a percentage of the buying price. You can change it in the config file.
- You can export prices and stocks of items to an SQL database.
- Use MCStats plugin Metrics in order to collect datas from volunteers.
How the price is computed ?
The price is computed with two equations, one to increase the price, and another to decrease it.
You can customize these equations in the config file. All the available operations are listed here : JFEP.
Example line chart with SQL on a website
Dependencies
Last available version of Better Shops
Issues
You can find the source code on GitHub : MineStock on Github
Please use Github to report issues : https://github.com/Aztorius/MineStock/issues
Statistics
MineStock use the MCStats Plugin Metrics in order to collect informations from your server.
Collected informations :
- Number of users online/offline - Number of system cores - The system architecture - The server software (Spigot, Bukkit ...) - The server location (England, France, US, ...) - The operating system (Windows, Linux ...) - The java version - If your server is online - The game version (1.8.7, ...)
You can disable data collecting by changing to false the sendInformationsWithMetrics option in the config file. All data are anonymous and public on metrics.griefcraft.com for informational purpose only.
Sorry for the VERY LATE response, I was busy all this time.
So, you want me to add a function that compute the price depending on the sells for a specified time if I understand.
First, I need to add the ability to manage the items prices in a server shop.
I think the most important thing to add is the ability to set an amount of sells per time. The compute of the new price can be already changed in the config file with a formula (<=> the multiplier) and can take care of the sells falling down.
The real problem is to set all of this to every item.
I will work on this for MineStock 2.0.
I can't tell you when it will be released.
Before 2.0 I will release some improvements updates.
Another issue is BetterShops no longer updated.
I'm discussing with others to continue the work.
@informaticien77
I think I can shed some light on what the earlier poster might have been talking about.
BetterShops does a good job being a player-run shop system. It does an adequate job being a server-side shop system, too. From the server-shop point of view, it's limiting in that it does not let you simulate any kind of real economy that you'd find in other games.
I'll give you a use case scenario. Player Jane logs on to a server, and goes to the spawn town to buy arrows. The spawn town contains a weapons shop, that is a server shop. So the arrows can be set to infinite or a finite stock level. As it stands now, she buys as many arrows as she likes, at a fixed price, forever.
With Minestock, the price can change based on demand. That makes sense, but it doesn't have any market forces moving to stabilize that price or economy, like what happens in the real world.
What I think this player would like to see (and I would LOVE to see) is a plugin that lets you adjust both price and stock levels on a regular basis.
So Jane logs on, and goes to the spawn town to buy arrows. Let's say the arrow shop can afford to sell you 24 arrows, every 6 hours, at $1 per arrow. The shop can, at a higher price, sell another 24 arrows in that time span, but the cost will be $2 an arrow. In fact, every additional 24 arrows the shop sells during that 6 hour timespan will double the price.
So if a war is going on, arrows are going to become very expensive. Not to the first player who gets there, but to each additional player. So let's say the war drives up the price to $32 per arrow, which players are unwilling to pay. It's just too high. As the time advances, the price will start dropping. The plugin will look at the database, and see only 48 arrows have been sold in the last six hours, and set the price at $4 per arrow instead of $32. Players will begin buying again, or wait until the price drops back down to $1 per arrow.
That type of system has a much more dynamic feel, as far as economy is concerned, y' know?
Is something like this possible with Minestock? Both for buying and selling? I'd imagine you could set a time (in minutes), stock level, and multiplier on each item. So arrows would be 360, 24, x2.
Thanks for your time!
@Raboyspace
I will be glad to add this ability to the plugin. What do you mean by managing stock ?
So, I looked for a plugin that manages stock and prices like in RuneScape, It does adjust prices. It (the plugin) is AWESOME, but can you make it also manage stock, so it would be real economy system.
@ralphhogaboom
MineStock require LiveEconomy to be disabled. It does not adjust the stock of the items in the server shops.
LiveEconomy and MineStock are independant.
So does this require LiveEconomy to be enabled? Does it adjust the stock of the items in the server shops? It seems like it has some overlap with how the LiveEconomy function of Better Shops works.
@ralphhogaboom
Hello, at the moment it works with server shops. But originally it was made in order to manage prices with members' shops.
Well hello, this sounds awesome. Is it intended for use in server side shops?