From 3bb4b6d230d2c4a91feb988d385e4513febcef41 Mon Sep 17 00:00:00 2001 From: Thijs Wiefferink Date: Sat, 11 Jun 2016 16:42:04 +0200 Subject: [PATCH] Add tax example --- Frequently-Asked-Questions.md | 37 ++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/Frequently-Asked-Questions.md b/Frequently-Asked-Questions.md index 0ab0bb7..53fe504 100644 --- a/Frequently-Asked-Questions.md +++ b/Frequently-Asked-Questions.md @@ -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. \ No newline at end of file +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: +``` \ No newline at end of file