mirror of
https://github.com/NLthijs48/AreaShop.git
synced 2024-11-29 05:35:12 +01:00
Add automatic teleporting to region after buying/renting section
parent
101de30ce0
commit
bc2da3907b
@ -154,3 +154,37 @@ You can use a plugin like [BoosCooldowns](http://dev.bukkit.org/bukkit-plugins/b
|
||||
|
||||
#### How can I let signs show the time left instead of the end time of a rental?
|
||||
In the `signProfiles` section of `config.yml` you can change the `%untilshort%` variable to a `%timeleft%` (you can find it in the `rented` sign state) variable to show the time that is left instead of the end time. This will help to prevent confusion because of time zones being different for the player and the server.
|
||||
|
||||
### How do I let a player automatically teleport to a region after he bought/rented it?
|
||||
Set the 'eventCommandProfiles' section of the config to the following (assuming you have Essentials installed which provides the `sudo` command):
|
||||
```yaml
|
||||
eventCommandProfiles:
|
||||
default:
|
||||
created:
|
||||
before:
|
||||
after:
|
||||
deleted:
|
||||
before:
|
||||
after:
|
||||
rented:
|
||||
before:
|
||||
after:
|
||||
- "sudo %player% areashop tp %region%"
|
||||
extended:
|
||||
before:
|
||||
after:
|
||||
unrented:
|
||||
before:
|
||||
after:
|
||||
bought:
|
||||
before:
|
||||
after:
|
||||
- "sudo %player% areashop tp %region%"
|
||||
sold:
|
||||
before:
|
||||
after:
|
||||
resell:
|
||||
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.
|
Loading…
Reference in New Issue
Block a user