GlobalMarket
GlobalMarket 用实时 自动化做市商(AMM) 系统取代了静态的、由管理员定义的价格表——这项技术驱动着现代现实世界的金融交易所,现在应用于 Minecraft 物品!
价格会根据供需关系自然波动。如果玩家买光了所有钻石,价格就会自然飙升;如果他们向市场大量抛售铁锭,价格就会下跌。
工作原理:流动性池
管理员不再为物品设定固定价格,而是注入 流动性池(例如:100 颗钻石 + $5,000)。
插件使用 恒定乘积做市商 公式动态计算价格:
- 现货价格 = 货币池 / 物品池(例如:$5000 / 100 = 每颗钻石 $50)。
- 价格影响:购买物品会从池中移除它们,使下一个物品的价格更高。出售物品会向池中增加它们,使下一个物品的价格更低。
这创造了一个极具沉浸感的经济体系,大宗交易者必须考虑 滑点,而市场套利成为一种可行的玩法!
功能
- 动态定价: 没有静态商店菜单。价格根据池子的流动性实时更新。
- 恒定乘积 AMM 算法: 确保池子永远不会完全耗尽货币或物品。
- 可配置的交易手续费: 对买卖操作添加百分比手续费。手续费会自动重新投入流动性池,从而随着时间的推移增加市场的深度。
- Vault 集成: 无缝对接服务器现有的经济系统。
- 基于 YAML 的配置: 通过
markets.yml 轻松创建、注资和管理市场。
- 游戏内市场创建: 管理员可以随时创建和注资新市场,无需重启服务器。
命令
所有命令均源自 /market。
玩家命令:
/market info <item> — 查看当前现货价格、流动性池大小和交易手续费。
/market buy <item> <amount> — 从市场池中购买物品。成本是动态计算的。
/market sell <item> <amount> — 将物品卖给市场池。收益是动态计算的。
管理员命令: (globalmarket.admin 权限)
. /market create <item> <currency_amount> <item_amount> — 创建并注资一个新的流动性池。
权限
globalmarket.use — 允许玩家使用 /market info、/market buy 和 /market sell。(默认:true)
globalmarket.admin — 允许管理员使用 /market create。(默认:op)
注意: 此插件需要 Vault 以及一个兼容的经济插件才能运行,例如 LiteEco 或 EssentialsX。
GlobalMarket
GlobalMarket replaces static, admin-defined price lists with a real-time Automated Market Maker (AMM) system - the same technology powering modern real-world financial exchanges, but with Minecraft items!
Prices fluctuate organically based on supply and demand. If players buy up all the diamonds, the price naturally skyrockets. If they flood the market with iron, the price drops.
How It Works: The Liquidity Pool
Instead of setting a hard price for items, admins seed Liquidity Pools (e.g., 100 Diamonds + $5,000).
The plugin uses the Constant Product Market Maker formula to calculate prices on the fly:
- Spot Price = Currency Pool / Item Pool (e.g., $5000 / 100 = $50 per Diamond).
- Price Impact: Buying items removes them from the pool, making the next one more expensive. Selling items adds them to the pool, making the next one cheaper.
This creates a deeply immersive economy where bulk traders have to consider slippage, and market arbitrage becomes a viable playstyle!
Features
- Dynamic Pricing: No static shop menus. Prices update in real-time based on pool liquidity.
- Constant Product AMM Math: Ensures the pool can never be completely drained of currency or items.
- Configurable Trading Fees: Add a percentage fee to buys and sells. Fees are automatically reinvested into the liquidity pool, growing the market's depth over time.
- Vault Integration: Seamlessly hooks into your server's existing economy.
- YAML-Based Configuration: Easily create, seed, and manage markets via
markets.yml.
- In-Game Market Creation: Admins can create and seed new markets on the fly without restarting the server.
Commands
All commands stem from /market.
Player Commands:
/market info <item> — View the current spot price, liquidity pool sizes, and trading fee.
/market buy <item> <amount> — Purchase items from the market pool. The cost is calculated dynamically.
/market sell <item> <amount> — Sell items to the market pool. The payout is calculated dynamically.
Admin Commands: (globalmarket.admin permission)
. /market create <item> <currency_amount> <item_amount> — Create and seed a new liquidity pool.
Permissions
globalmarket.use — Allows players to use /market info, /market buy, and /market sell. (Default: true)
globalmarket.admin — Allows admins to use /market create. (Default: op)
Note: This plugin requires Vault and a compatible economy plugin to function, such as LiteEco or EssentialsX.
评论 0
登录后参与评分
还没有评论,来抢沙发吧