Glass Plugin Suite Wiki / GlassShops
GlassShops
Version 1.0.2-alpha.1 • Tested on Paper 26.3 • Java 25 • Support: support@glasshosting.com
Overview
GlassShops adds real-stock chest shops paid in GlassShards:
- Players turn a single chest into a shop for one exact item, set buy and sell prices, and manage stock from a panel.
- Staff run server catalogs:
/blockshop(block shop) and/plushies(plushie shop), backed by real chests with finite stock. - Every trade shows a confirmation with count, unit price and total, and runs inside a GlassShards receipt so stock and money move together or not at all.
- Custom items (Nexo and others) keep their full data; lookalikes never match.
Requirements
- Paper 26.3 (tested), Java 25.
- Vault and GlassShards 1.0.0-alpha.7 or newer (hard dependencies). Your main Vault economy can stay whatever it is (for example CMI or EssentialsX); GlassShops uses a scoped GlassShards adapter and never replaces it.
- Optional: Nexo.
Installation
- Stop the server at a maintenance window. Back up world/player data,
plugins/GlassShops/andplugins/GlassShards/together. - Install GlassShards and GlassShops. Keep Vault installed.
- If you are replacing another chest shop plugin, retire it in the same window; old shops are not imported.
- Start and run
/glassshops status.
First-time setup
- Hold the item to sell and run
/glassshops create, then right-click a single chest. - Confirm, set prices (0 disables that direction), add stock, open the shop.
- Staff:
/glassshops staff> Create block shop or Create plushie shop, hold the item, select the stock chest, set prices, open. Fund the creator's checking account before enabling sellbacks.
Commands
| Command | Permission | What it does |
|---|---|---|
/glassshops (alias /gshops) |
glassshops.use |
Browse shops and open owner panels. |
/glassshops create |
glassshops.create |
Create a shop: hold the item, right-click a single chest. |
/glassshops mine |
glassshops.use |
Manage your shops. Sneak-right-clicking your chest also opens it. |
/glassshops staff |
glassshops.staff |
Staff list, catalog creation, freeze, move and close. |
/glassshops status |
glassshops.staff |
Payment status and interrupted receipts. |
/glassshops recover |
glassshops.staff (a player with a locked operation may request recovery) |
Recover pending operations. |
/blockshop |
glassshops.use |
Server block catalog. Also /glassshops:blockshop. |
/plushies |
glassmc.shop.plush |
Server plushie catalog. Also /glassshops:plushies. |
/glassshopspremium preset|discord|menu ... |
glassshops.premium |
Paid edition. See Editions. |
Permissions
| Node | Default | Grants |
|---|---|---|
glassshops.use |
true | Browse and trade, /blockshop. |
glassshops.create |
true | Create shops. |
glassshops.staff |
op | Staff panel, status and recovery. |
glassmc.shop.plush |
false | /plushies catalog. Grant it to the ranks that should see plushies. |
glassshops.premium |
op (not declared in plugin.yml) | Paid edition commands. |
Configuration (config.yml)
| Key | Default | Effect |
|---|---|---|
limits.per-player |
10 |
Shop chests per owner. |
limits.server |
500 |
Shop chests server-wide. |
limits.warning-remaining |
2 |
Warn when this many slots remain. |
limits.max-trade-items |
2304 |
Most items in one trade. |
limits.max-unit-price |
'1000000.00' |
Highest unit price. |
empty.freeze-after-hours |
72 |
Freeze a shop after this long empty. |
empty.check-seconds |
60 |
How often empty shops are checked. |
trade.quote-seconds |
30 |
How long a quote stays valid. |
trade.max-distance |
8 |
Blocks a customer can be from a player shop. |
metrics.enabled |
true |
bStats opt-out. |
premium.discord.* |
off | Paid alerts (shop_sale). |
branding.item-model |
auto |
Menu icon model. |
Data: plugins/GlassShops/shops.mv.db (H2, immediate writes).
Using it efficiently
- One item per shop, real stock. Use the stock panel to deposit or retrieve; hoppers, pistons, explosions and raw opens cannot touch shop chests. Retrieve all chest contents also returns unrelated items if you have room.
- Single chests only. Double chests are not supported.
- Frozen and closed shops keep their records and still count towards caps. Staff can release a closed, empty chest.
- Catalog shops let customers trade from anywhere through
/blockshopor/plushies; the stock chest stays put. - Performance: each completed trade asks Paper to save the world for safety. On large worlds, measure save time on a copy before launch.
- NPC shopkeeper:
/gnpc action shopkeeper RIGHT PLAYER_COMMAND blockshop. - Never edit shop or currency files while an operation is interrupted. Use
/glassshops statusand/glassshops recover.
Integration with other Glass plugins
- GlassShards: prices and payments in shards; both balances commit together with a receipt.
- GlassNPC: catalog NPCs through
PLAYER_COMMANDactions. - GlassEconomy: use
/glasseconomy quoteto choose balanced prices.
Troubleshooting
| Problem | Fix |
|---|---|
| Shop or player shows as locked | An interrupted trade needs review. Run /glassshops recover; it waits for offline players to join. |
| "Missing glassmc.shop.plush permission" | Grant glassmc.shop.plush. |
| Quote expired | Prices changed or 30 seconds passed; review again. |
| Too far from the shop | Move within trade.max-distance blocks. |
Old /blockshop from another plugin opens |
Use /glassshops:blockshop or remove the old alias. |
Changelog
- 1.0.2-alpha.1: Free edition alpha; Nexo pack sync, Glass Shard menu icons, bug fixes (2026-10-13).
- 1.0.0: First release: real-stock chest shops, block and plushie catalogs, receipts and recovery.