Vault Item Exchange
作者:rebot | 分类:模组
Minecraft 版本: 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8 1.21.9 1.21.10 1.21.11
平台: paper purpur spigot
标签: economy
Build with AI assistance.
A lightweight, high-performance Minecraft plugin for Paper and Spigot (1.21.x) that allows players to trade items for currency using a simple command-line interface.
Features
- Custom Prices: Configure any Minecraft item and its price in the
config.yml. - Two-Way Exchange: Sell items for coins or withdraw items using your balance.
- Tab Completion: Smart autocomplete for item names and common quantities (1, 2, 3, 5).
- User Friendly: Automatically converts internal names like
IRON_INGOTto "Iron Ingot" in chat. - Secure: Built-in checks for inventory space and "no-debt" logic to prevent balance errors.
- Modern Support: Compiled for Java 21+ and compatible with Minecraft 1.21.x
Installation
- Ensure you have Vault installed.
- Ensure you have an Economy Provider installed (e.g., EssentialsX, LiteEconomy, or TheNewEconomy).
- Place
VaultItemExchange.jarinto your server'splugins/folder. - Restart your server.
- Edit
plugins/VaultItemExchange/config.ymlto set your desired items and prices.
Commands
| Command | Description |
|---|---|
/xsell <item> <amount> |
Sell items from your inventory for coins. |
/xwithdraw <item> <amount> |
Buy items using your economy balance. |
/xitems |
List all available items and their current prices. |
/xmoney |
Check your current balance in the server economy. |
Configuration
Example config.yml:
# Add items using their official Bukkit Material names
# Prices are per single item
prices:
DIAMOND: 10.0
EMERALD: 15.0
GOLD_INGOT: 5.0
IRON_INGOT: 2.0请登录后举报
暂无评论,抢个沙发吧~