-
-
Notifications
You must be signed in to change notification settings - Fork 44
Autoprices
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
. 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 region -
per_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.
- Home
- AdvancedRegionMarket API - Guide for plugin developers.
- Video tutorials - Watch and learn with Major Graft.
- Create a region
- Region settings
- Presets - Define region settings before creating a region.
- Autoprices - Calculate the price of a region automatically.
- Regionkinds - Regionkinds and RegionkindGroups can be assigned to your regions to group them together and bring them into a context.
- Limits - Limit the number of regions a player can buy.
- Inactivity reset & Takeover - Automatically reset a region because of inactivity or let members of regions with inactive owners become the new owner.
- FlagGroups - Assign certain flags to a region depending on its state.
- Entitylimits - Limit the type and number of entities a player is allowed to have on a region.
- Commands and permissions - Look up syntax, descriptions and permissions.
- Placeholders & messages
- Discord - Get involved with other AdvancedRegionMarket Admins, Plugin Developers, Testers. Support, General Discussion welcome.
- Sponsor - Sponsor the development of AdvancedRegionMarket