# Furniture shop

{% stepper %}
{% step %}

### Download required plugins and extensions

* [PlaceholderAPI](https://www.spigotmc.org/resources/6245)
* [Vault](https://www.spigotmc.org/resources/34315)
* Economy plugin (like [Essentials](https://www.spigotmc.org/resources/essentialsx.9089/))
* [Vault placeholder expansion](https://api.extendedclip.com/expansions/vault/) (used to check the balance)
  * Note that this is an expansion, easiest way to install it is running:\ <mark style="color:blue;">`/papi ecloud download Vault`</mark> and <mark style="color:blue;">`/papi reload`</mark>
* [WorldGuard](https://dev.bukkit.org/projects/worldguard/files) (**Optional**, used to limit where furniture is sold)
  {% endstep %}

{% step %}

### Add shop presets

Now that all plugins are setup, **download** <mark style="color:blue;">`shop.yml`</mark>  and **put** it into <mark style="color:blue;">`plugins/Tooltips/presets`</mark>.

{% file src="<https://2056457066-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO0fJVi4OrBJoOYrP9n9t%2Fuploads%2FOU9eUnFmh44FEOAy5tz5%2Fshop.yml?alt=media&token=95375f5a-1bfc-46d2-8058-f1b9aec6b28e>" %}
{% endstep %}

{% step %}

### Configure

Open the above <mark style="color:blue;">`shop.yml`</mark> file. There are 2 things that may be edited to fit your setup:

1. Furniture give command
   1. **Nexo**: Already setup for Nexo
   2. **ItemsAdder**: `iagive %player% $context(furniture.id)`
2. Economy take command
   1. **Essentials**: Already setup

They can be in the confirmation preset, and have a "EDIT ME" comment above them:

<div align="left"><figure><img src="https://2056457066-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO0fJVi4OrBJoOYrP9n9t%2Fuploads%2FeorizMpHRjX15cGpXEH4%2Fcarbon%20(1).png?alt=media&#x26;token=630fd474-ea8b-41fc-ba68-a5ecdf310915" alt="" width="563"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

### Region

To limit furniture sale only to a given region, you can use WorldEdit.  Remove all the # comments from region conditions:\
![](https://2056457066-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO0fJVi4OrBJoOYrP9n9t%2Fuploads%2Fv9SquYfvvHhDciFWOD3W%2Fcarbon%20\(3\).png?alt=media\&token=5696ffbb-960a-40e7-8817-a65e4ce601ca)\
\
After that, in data change the shop regions name. This will be the WorldGuard region where you can buy furniture in:\
![](https://2056457066-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO0fJVi4OrBJoOYrP9n9t%2Fuploads%2FbK2YnR29WtM61GYehXHW%2Fcarbon%20\(4\).png?alt=media\&token=f5aa0e1a-366d-47ac-9ad1-5af7ac6bbaee)
{% endstep %}

{% step %}

### Setup prices

At the top of the <mark style="color:blue;">`shop.yml`</mark> file, you can see the data section. This is where you define prices for the furniture. They are added by their ID.

<div align="left"><figure><img src="https://2056457066-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO0fJVi4OrBJoOYrP9n9t%2Fuploads%2F17CU71pa4t3fKHLofl0Q%2Fcarbon%20(5).png?alt=media&#x26;token=a83e9040-46ce-419a-bad4-4e8576f46516" alt="" width="563"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

### Reload the plugin

Simply run <mark style="color:blue;">`/tt reload`</mark> and it should be ready to go!
{% endstep %}
{% endstepper %}

### Issues

If you get any issues,&#x20;
