Files
CustomNPC-Plus/update/traders.md
T
2026-03-10 23:54:23 -04:00

41 lines
1.4 KiB
Markdown

# Trader Enhancements
---
Traders have been upgraded with a **stock system** and **currency integration**, turning them into proper shops with limited supply and real economy support.
---
## Stock System
Traders now support **limited stock** with automatic restocking.
**Stock Modes:**
- **Global** - All players share the same stock pool. When an item sells out, it's gone for everyone until restock
- **Per-Player** - Each player has their own purchase limits. One player buying out stock doesn't affect others
**Restock Timers:**
- **MC Daily / Weekly** - Restock based on Minecraft time
- **RL Daily / Weekly** - Restock based on real-life time
- **Custom** - Set your own interval in MC ticks or real-time
Stock counts, out-of-stock indicators, and restock timers are all visible directly in the trade interface so players know exactly what's available.
> Admins can manually reset stock or cooldowns via the Trader GUI.
---
## Currency Trades
Trades can now require **currency on top of items**. Combine material costs with coin costs for balanced economy progression.
For example, a diamond sword might cost 3 diamonds **plus** 500 coins — creating more meaningful economic choices.
---
## Balance Preview
A **client-side balance preview** shows your expected balance during trades, so you can see exactly how much you'll have left before confirming a purchase.
---