# 💸Price

The FurnitureShow plugin features an integrated price and purchase system, allowing players to acquire furniture items directly through the GUI using in-game money. This system relies on an economy plugin (like Vault) and is configurable to be enabled or disabled.

***

### 1. Setting Item Prices

Every furniture item listed in your `furniture/<category>.yml` files has a `price` property. This defines the cost of the item. or `/nwfurnitureshow config additem <category> <price>`

**Example from `furniture/<category>.yml`:**

```yaml
# plugins/nwFurnitureShow/furniture/furnitures.yml
furniture_show:
  my_red_chair:
    id: "itemsadder:my_red_chair"
    name: "Red Chair"
    price: 100.0                   # <--- The price of this item
    lore:
      - "<gray>A bright red chair</gray>"
      - "<gold>Price: {price}฿</gold>"
```

***

### 2. Price Format

FurnitureShow supports multiple currency plugins, allowing you to set prices for furniture using various in-game economies. The price format structure is simple, typically following the pattern: `<type>;<id/currency>;<price>`.

#### 💰 Supported Price Formats

| **Plugin Support**                   | **Format**              | **Example**              | **Description**                                                    |
| ------------------------------------ | ----------------------- | ------------------------ | ------------------------------------------------------------------ |
| CoinsEngine (Tested Latest Version)  | `ce;<currency>;<price>` | `price: ce;nwcoins;1000` | Uses the specified currency ID (e.g., `nwcoins`) from CoinsEngine. |
| PlayerPoints (Tested Latest Version) | `pp;<price>`            | `price: pp;1000`         | Uses the player's stored PlayerPoints balance.                     |
| Beast Token (Tested Latest Version)  | `bt;<price>`            | `price: bt;1000`         | Uses the player's stored Beast Token balance.                      |
| Vault                                | `vault;<price>`         | `price: 100.50`          | Uses the server's primary currency linked via Vault.               |

#### CoinsEngine Placeholder Support

When using CoinsEngine, you can utilize the following placeholders to display the currency symbol in messages and GUIs:

* `{symbol}`
* `<symbol>`
