Autoprices - alex9849/advanced-region-market GitHub Wiki
If a region gets added to arm the 4th line of the sell-sign usually contains the price of the region. This line can also contain an autoprice. Autoprices automatically calculate the price for a region depending on their configuration. Autoprices can also be changed at a later point in time. All regions that use the autoprice will immediately have the new price after reloading the plugin. Autoprices can be configured within the config.yml
at the Autoprice
-section. The following is an example configuration, that contains 3 autoprices named example1
, example2
and example3
:
AutoPrice:
example1:
price: 200.0
extendTime: 2d
maxExtendTime: 7d
autoPriceCalculation: static
example2:
price: 2.0
extendTime: 12h
maxExtendTime: 2d
autoPriceCalculation: per_m2
example3:
price: 0.05
extendTime: 7d
maxExtendTime: 30d
autoPriceCalculation: per_m3
DefaultAutoprice:
price: 2.0
extendTime: 1d
maxExtendTime: 7d
autoPriceCalculation: per_m2
You can add or remove autoprices by deleting or adding new configuration blocks like in the scheme above. If one of these autoprices gets used for a region, ARM will automatically calculate the price for it depending on the configurations of the autoprice.
There are 3 autoPriceCalculation
-settings:
static
The price will is static.per_m2
The price will be multiplied with the number of square meters inside the regionper_m3
The price will be multiplied with the number of blocks inside the region
You always have to set the parameters maxExtendTime
and extendTime
. Both parameters will be ignored, if they are not required for the sell-type of the corresponding region.