mirror of
https://github.com/NLthijs48/AreaShop.git
synced 2024-11-29 13:45:12 +01:00
Updated Frequently Asked Questions (markdown)
parent
f6a3f5ec00
commit
ead2426814
@ -6,6 +6,7 @@
|
|||||||
* [What happens when a player changes his name?](https://github.com/NLthijs48/AreaShop/wiki/Frequently-Asked-Questions#what-happens-when-a-player-changes-his-name)
|
* [What happens when a player changes his name?](https://github.com/NLthijs48/AreaShop/wiki/Frequently-Asked-Questions#what-happens-when-a-player-changes-his-name)
|
||||||
* [How to prevent players from opening chests in regions that other players bought/rented?](https://github.com/NLthijs48/AreaShop/wiki/Frequently-Asked-Questions#how-to-prevent-players-from-opening-chests-in-regions-that-other-players-boughtrented)
|
* [How to prevent players from opening chests in regions that other players bought/rented?](https://github.com/NLthijs48/AreaShop/wiki/Frequently-Asked-Questions#how-to-prevent-players-from-opening-chests-in-regions-that-other-players-boughtrented)
|
||||||
* [How can I use items as currency to pay for regions of AreaShop?](https://github.com/NLthijs48/AreaShop/wiki/Frequently-Asked-Questions#how-can-i-use-items-as-currency-to-pay-for-regions-of-areashop)
|
* [How can I use items as currency to pay for regions of AreaShop?](https://github.com/NLthijs48/AreaShop/wiki/Frequently-Asked-Questions#how-can-i-use-items-as-currency-to-pay-for-regions-of-areashop)
|
||||||
|
* [How do I require players to confirm that they want to rent/unrent/buy/sell their region?](https://github.com/NLthijs48/AreaShop/wiki/How-do-I-require-players-to-confirm-that-they-want-to-rent-unrent-buy-sell-their-region)
|
||||||
|
|
||||||
***
|
***
|
||||||
|
|
||||||
@ -84,3 +85,63 @@ The above assumes that you also want players unable to interact with chests if t
|
|||||||
|
|
||||||
#### How can I use items as currency to pay for regions of AreaShop?
|
#### How can I use items as currency to pay for regions of AreaShop?
|
||||||
AreaShop supports all economy plugins that are supported by [Vault](http://dev.bukkit.org/bukkit-plugins/vault/), so if you want to use items as currency then you need an economy plugin that has that and also works with Vault. The [Gringotts economy](http://dev.bukkit.org/bukkit-plugins/gringotts/) should work for this purpose, this plugin has been successfully used by a couple AreaShop users. There might be other suitable plugins to do the same thing though.
|
AreaShop supports all economy plugins that are supported by [Vault](http://dev.bukkit.org/bukkit-plugins/vault/), so if you want to use items as currency then you need an economy plugin that has that and also works with Vault. The [Gringotts economy](http://dev.bukkit.org/bukkit-plugins/gringotts/) should work for this purpose, this plugin has been successfully used by a couple AreaShop users. There might be other suitable plugins to do the same thing though.
|
||||||
|
|
||||||
|
#### How do I require players to confirm that they want to rent/unrent/buy/sell their region?
|
||||||
|
Because clicking a sign to rent/unrent can be a bit too easy sometimes, you might want to have confirmation messages. You can add those by changing the `signProfiles` in the `config.yml` file to send a `/tellraw` message to the user instead of immediately buying/renting a region. This will mean that the player will first get a message in chat asking to confirm, and the player can click the confirm text of the message to perform the action.
|
||||||
|
|
||||||
|
To get confirmation messages copy the signProfile below to your `config.yml` file, below the default one.
|
||||||
|
```yaml
|
||||||
|
confirm:
|
||||||
|
forrent:
|
||||||
|
line1: '&2&l[For Rent]'
|
||||||
|
line2: '%region%'
|
||||||
|
line3: '%duration%'
|
||||||
|
line4: '%price%'
|
||||||
|
rightClickConsole:
|
||||||
|
- 'tellraw %clicker% [{"text":"[Areashop]","color":"dark_green"},{"text":" Are you sure you want to rent region %region%? ","color":"white"},{"text":"[Yes, go ahead]","color":"dark_green","clickEvent":{"action":"run_command","value":"/areashop rent %region%"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Click to rent %region%"}]}}}]'
|
||||||
|
leftClickPlayer:
|
||||||
|
- 'areashop info region %region%'
|
||||||
|
rented:
|
||||||
|
line1: '&4&l[Rented]'
|
||||||
|
line2: '%region%'
|
||||||
|
line3: '%player%'
|
||||||
|
line4: '%untilshort%'
|
||||||
|
rightClickConsole:
|
||||||
|
- 'tellraw %clicker% ["",{"text":"[Areashop]","color":"dark_green"},{"text":" Are you sure you want to extend the rent of region %region%? ","color":"white"},{"text":"[Yes, go ahead]","color":"dark_green","clickEvent":{"action":"run_command","value":"/areashop rent %region%"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Click to extend %region%"}]}}}]'
|
||||||
|
leftClickPlayer:
|
||||||
|
- 'areashop info region %region%'
|
||||||
|
shiftRightClickConsole:
|
||||||
|
- 'tellraw %clicker% ["",{"text":"[Areashop]","color":"dark_green"},{"text":" Are you sure you want to unrent region %region%? ","color":"white"},{"text":"[Yes, go ahead]","color":"dark_green","clickEvent":{"action":"run_command","value":"/areashop unrent %region%"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Click to unrent %region%"}]}}}]'
|
||||||
|
forsale:
|
||||||
|
line1: '&2&l[For Sale]'
|
||||||
|
line2: '%region%'
|
||||||
|
line3: '%price%'
|
||||||
|
line4:
|
||||||
|
rightClickConsole:
|
||||||
|
- 'tellraw %clicker% ["",{"text":"[Areashop]","color":"dark_green"},{"text":" Are you sure you want to buy region %region%? ","color":"white"},{"text":"[Yes, go ahead]","color":"dark_green","clickEvent":{"action":"run_command","value":"/areashop buy %region%"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Click to buy %region%"}]}}}]'
|
||||||
|
leftClickPlayer:
|
||||||
|
- 'areashop info region %region%'
|
||||||
|
resell:
|
||||||
|
line1: '&9&l[Resale]'
|
||||||
|
line2: '%region%'
|
||||||
|
line3: '%resellprice%'
|
||||||
|
line4: '&8%player%'
|
||||||
|
rightClickConsole:
|
||||||
|
- 'tellraw %clicker% ["",{"text":"[Areashop]","color":"dark_green"},{"text":" Are you sure you want to buy region %region% from %player%? ","color":"white"},{"text":"[Yes, go ahead]","color":"dark_green","clickEvent":{"action":"run_command","value":"/areashop buy %region%"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Click to buy %region% from %player%"}]}}}]'
|
||||||
|
leftClickPlayer:
|
||||||
|
- 'areashop info region %region%'
|
||||||
|
shiftRightClickConsole:
|
||||||
|
- 'tellraw %clicker% ["",{"text":"[Areashop]","color":"dark_green"},{"text":" Are you sure you want to stop reselling region %region%? ","color":"white"},{"text":"[Yes, go ahead]","color":"dark_green","clickEvent":{"action":"run_command","value":"/areashop stopresell %region%"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Click to stop reselling %region%"}]}}}]'
|
||||||
|
sold:
|
||||||
|
line1: '&4&l[Sold]'
|
||||||
|
line2: '%region%'
|
||||||
|
line3: '%player%'
|
||||||
|
line4:
|
||||||
|
leftClickPlayer:
|
||||||
|
- 'areashop info region %region%'
|
||||||
|
shiftRightClickConsole:
|
||||||
|
- 'tellraw %clicker% ["",{"text":"[Areashop]","color":"dark_green"},{"text":" Are you sure you want to sell region %region%? ","color":"white"},{"text":"[Yes, go ahead]","color":"dark_green","clickEvent":{"action":"run_command","value":"/areashop sell %region%"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Click to sell %region%"}]}}}]'
|
||||||
|
```
|
||||||
|
To switch to the signProfile with the confirmation messages you have to set the `signProfile` setting inside the `default.yml` file to `confirm` (alternatively you can set this profile only for region in a certain group, individual regions or individual signs).
|
||||||
|
|
||||||
|
To generate the correct `tellraw` messages with a site like [Tellraw Generator](http://www.minecraftjson.com/), or you could change the above messages to your liking.
|
Loading…
Reference in New Issue
Block a user