NLthijs48 / AreaShop

A Bukkit/Spigot (Minecraft server) plugin that facilitates renting and buying WorldGuard regions
GNU General Public License v3.0
55 stars 89 forks source link

[request] Dynamic shop pricing based on #no shops rented in a group. #356

Open TomLewis opened 7 years ago

TomLewis commented 7 years ago

Servers fluctuate with active users over the year, when its summer were super busy, then it slows down a bit etc. So shops get unrented, and they keep their high prices. I have a group of about 80 shops, all different sizes and prices, its not a simple task to update these all manually. If we could have a command, or auto trigger to discount mass shops in a specific group at certain times, or if that groups rented drops too low, then a discount % is applied. Even having a way to add a discount on all shops in a group would be good, we could run it manually when we see it getting like a ghost town.

NLthijs48 commented 7 years ago

If you add all regions to a group, remove the prices in the individual region files, and then use the dynamic price as discussed in #357 this would be easy. After doing that you have the price per block (or square meter) in 1 place, the group, so you can easily adjust it when it is too high for the season.

If you really want to automate it you could automatically adjust the price based on the current date with a JavaScript expression in the price setting, which is a bit more work to setup (and probably you cannot predict the price that good, which might make manually adjusting it better).

If you actually want to use the number of rented region in a group in the calculation I would need to add a couple variables to get those numbers, issue #43 is related to this, which needs the same kind of variables. I could do that if you need them.

Let me know if that helps.