WebMarket - 为您的 Minecraft 服务器打造的自带网站的加密货币交易所
WebMarket 将您服务器的游戏内货币转化为一个活跃的加密市场。玩家可以在游戏中以及内置网站上交易硬币,网站提供实时 K 线图、排行榜、新闻和实时交易流。无需外部 Web 服务器、PHP 或 Skript——一切皆在一个 jar 包中。
虚构的交易所,仅限游戏内货币。没有任何真实资金进入或离开市场,且该插件没有支付集成。
这是一个测试版。欢迎反馈和报告错误!
功能
- 8 种默认硬币(完全可配置),价格由市场曲线驱动:大额买入会推高价格,大额卖出会降低价格,且你无法通过拆分订单获利
- 实时市场:每几秒发生随机的微小波动,市场周期,制造供需的机器人,以及带有新闻的随机牛市/熊市事件
- 网站和聊天中清晰标注机器人和事件(对玩家公平)
- 内置网站:K 线图、带有盈亏的钱包、交易历史、排行榜、新闻和实时流
- 无密码登录:玩家通过
/gielda link 获取一次性代码
- 游戏内菜单 (
/gielda),包含钱包、市场和经纪商(购买/出售 1/10/100/max)
- 限价单与锁定资金
- 在游戏和交易所账户之间存款和取款 (
/wplac, /wyplac),具有防崩溃的付款队列
- SQLite(默认,零设置)或 MySQL
管理工具
- 网站上的管理面板(适用于拥有
gielda.admin 权限的玩家)
- 按需运行任何市场事件,添加自定义事件并删除它们,或导入默认集合
- 创建、编辑和删除自定义硬币,具备完整配置(起始价格、图标、波动性、流动性),无需重启
- 调整价格、趋势和玩家账户,并修复中断的付款
- 所有管理操作均记录在服务器日志中
英文和波兰文
命令、聊天消息、网站和默认事件均提供 英文和波兰文 版本。在 config.yml 中设置默认语言 (language: en / pl);玩家也可以通过 PL/EN 按钮切换网站语言。config.yml 全文为英文。
要求
- Paper(或其分支)1.21.x,Java 21
- Vault + 经济插件(例如 EssentialsX)
安装
- 将 jar 包放入 plugins/ 目录,同时放入 Vault 和你的经济插件
- 启动服务器 - 将创建 plugins/WebMarket/ 文件夹及 config.yml
- 调整 config.yml(货币、硬币、网站端口、public-url)并重启
- 在游戏中输入
/gielda link 并在网站上输入代码(默认端口 8123)
从 1.0.1 或更早版本升级?旧的 plugins/KryptoGielda/ 文件夹会自动迁移到 plugins/WebMarket/。
命令
/gielda - 打开菜单(menu, portfel, rynek, saldo, link, help)
/wplac <amount> (/deposit) - 存入交易所账户
/wyplac <amount> (/withdraw) - 取回到游戏
/gieldaadmin (/marketadmin) - 管理(需要权限 gielda.admin)
权限:gielda.use(默认:所有人),gielda.admin(默认:OP)
安全
一次性登录代码、HttpOnly 会话 Cookie、速率限制、来源检查、CSP 标头,以及所有价格逻辑均在服务器上处理。对于公共服务器,建议将网站置于使用 HTTPS 的反向代理之后(nginx/Caddy)- 请参阅配置注释。
反馈
发现错误或有任何想法?留下评论或联系我——这是一个测试版,您的反馈将塑造该插件。
开源协议:GPL-3.0
WebMarket - a crypto exchange with its own website for your Minecraft server
WebMarket turns your server's in-game currency into a living crypto market. Players trade coins in game and on a built-in website with live candlestick charts, a leaderboard, news and a live trade feed. No external web server, PHP or Skript needed - everything is in one jar.
Fictional exchange, in-game currency only. No real money ever enters or leaves the market, and the plugin has no payment integration.
This is a beta. Feedback and bug reports are very welcome!
Features
- 8 default coins (fully configurable) with prices driven by a market curve: big buys raise the price, big sells lower it, and you cannot profit from splitting orders
- Live market: random micro-moves every few seconds, market cycles, bots creating supply and demand, and random bull/bear events with news
- Bots and events are clearly labelled on the website and in chat (fair to players)
- Built-in website: candlestick chart, wallet with profit/loss, trade history, leaderboard, news and live feed
- Passwordless login: players get a one-time code with /gielda link
- In-game menu (/gielda) with wallet, market and broker (buy/sell 1/10/100/max)
- Limit orders with locked funds
- Deposit and withdraw between the game and the exchange account (/wplac, /wyplac), with a crash-safe payout queue
- SQLite (default, zero setup) or MySQL
Admin tools
- Admin panel on the website (for players with gielda.admin)
- Run any market event on demand, add your own custom events and delete them, or import the default set
- Create, edit and delete your own custom coins with full configuration (start price, icon, volatility, liquidity), no restart needed
- Adjust prices, trends and player accounts, and repair interrupted payouts
- All admin actions are written to the server log
English and Polish
Commands, chat messages, the website and the default events are available in English and Polish. Set the default in config.yml (language: en / pl); players can also switch the website language with the PL/EN button. config.yml is fully in English.
Requirements
- Paper (or a fork) 1.21.x, Java 21
- Vault + an economy plugin (e.g. EssentialsX)
Installation
- Drop the jar into plugins/ together with Vault and your economy plugin
- Start the server - the plugins/WebMarket/ folder with config.yml is created
- Adjust config.yml (currency, coins, website port, public-url) and restart
- In game, type /gielda link and enter the code on the website (default port 8123)
Upgrading from 1.0.1 or older? Your old plugins/KryptoGielda/ folder is migrated to plugins/WebMarket/ automatically.
Commands
- /gielda - open the menu (menu, portfel, rynek, saldo, link, help)
- /wplac <amount> (/deposit) - deposit to the exchange account
- /wyplac <amount> (/withdraw) - withdraw to the game
- /gieldaadmin (/marketadmin) - administration (permission gielda.admin)
Permissions: gielda.use (default: everyone), gielda.admin (default: OP)
Security
One-time login codes, HttpOnly session cookies, rate limiting, Origin checks, CSP headers, and all price logic on the server. For public servers, putting the website behind a reverse proxy with HTTPS (nginx/Caddy) is recommended - see the config comments.
Feedback
Found a bug or have an idea? Leave a comment or message me - this is a beta and your feedback shapes the plugin.
Open source under GPL-3.0.
评论 0
登录后参与评分
还没有评论,来抢沙发吧