Add tax example

Thijs Wiefferink 2016-06-11 16:42:04 +02:00
parent 6b10087e92
commit 3bb4b6d230

@ -188,4 +188,39 @@ eventCommandProfiles:
before:
after:
```
The listed commands will be executed after a player bought/rented a region and force them to use the teleport command to get to their region.
The listed commands will be executed after a player bought/rented a region and force them to use the teleport command to get to their region.
### How do I add tax to a buy region?
You cannot directly add a tax, however you can change it into a rental region for which you pay more the first time. This would achieve the same thing, for example buying a region for 1000, and then paying 50 each week to keep it.
First set the price of the region to the initial price you want to charge (1000 in this example). Then change the `eventCommandProfiles` section in `config.yml` to the following to setup the tax:
```yaml
eventCommandProfiles:
default:
created:
before:
after:
deleted:
before:
after:
rented:
before:
after:
- "areashop setprice 50 %region%"
extended:
before:
after:
unrented:
before:
after:
- "areashop setprice 1000 %region%"
bought:
before:
after:
sold:
before:
after:
resell:
before:
after:
```