Описание
# VSS Market
VSS Market is a player marketplace add-on for ViScriptShop. It provides a server-wide market where players can create their own shops, list items for sale, and trade with each other using ViScriptShop coins.
## Features
### Player Shops
- Each player can own one shop with a customizable name.
- Sellers list items in **bundles** — define how many items per bundle and how many bundles in stock.
- For example: list 5 wool per bundle with 3 bundles in stock. The system deducts 15 wool from the seller, and each buyer purchase gives them one bundle of 5 wool.
- Earnings from sales go into the shop's balance. The shop owner can collect coins anytime from the management panel.
### For Sellers
- **Create & Rename** — Set up a shop and change its name at any time.
- **List Items** — Choose an item from your inventory, set the price per bundle, bundle size, and stock quantity.
- **Restock** — Add more bundles to an existing listing.
- **Change Price** — Adjust the price of any listed item.
- **Take Down** — Remove a listing and get all remaining stock back.
- **Delete Shop** — Remove the entire shop. All remaining items and uncollected earnings are returned.
- Compatible with extended containers such as Refined Backpack and Beyond Dimensions.
### For Buyers
- Browse all player shops in one unified market UI.
- Search by **shop name**, **owner name**, **item name**, or **item ID**.
- Click an item card to see details, set the number of bundles to buy, and purchase.
- Players cannot buy from their own shop.
### Server Administration
- Configure minimum/maximum prices, max items per operation, max listings per shop, and max shop name length.
- Admin command to delete any player's shop directly.
## How to Use
Open the market:
```mcfunction
/vss_market open
```
Open a specific player's shop:
```mcfunction
/vss_market open
```
Delete a shop (requires permission level 4):
```mcfunction
/vss_market delete
```