Server Market 是一款适用于 Fabric 的服务端模组,为你的服务器带来完整的玩家驱动经济与市场系统。玩家可以通过简单的指令或直观的图形界面(GUI)查看余额、向其他玩家(包括离线玩家)转账以及查看交易历史。该模组包含玩家市场和系统商店两种模式,支持物品的上架、购买和出售,并完整支持 NBT 数据变体。此外,它还支持带有包裹站配送功能的采购订单系统,买家可以发布需求,卖家无需面对面即可履行订单。管理员可以选择性地引入实体货币物品、设置系统商店价格、直接管理玩家余额,并根据需要配置经济系统。存储默认使用 SQLite 以实现零配置运行,但可切换至 MySQL,并可选配合 XConomy 记录镜像功能,以共享数据库环境。对于运行 1.21.9 或更高版本的服务器所有者,该模组内置了 Placeholder API 支持。开发者可以通过暴露的 API 和事件系统进行挂钩,查询余额、处理转账、拦截购买操作或将经济系统集成到他们自己的模组中。
依赖要求
必需:
- Fabric API(版本需与你的 MC 版本匹配)
- Fabric Language Kotlin 1.13.8+kotlin.2.3.0
- Fabric Permissions API 0.5.0
可选:
- LuckPerms(推荐)用于权限管理
- Placeholder API(仅限 1.21.9+ JAR 包)
指令
玩家:
/svm
/svm menu
/svm money
/svm balance
/svm pay <player> <amount>
/svm history [page]
/svm sell <price>
/svm restock <quantity>
/svm pull
/svm list
/svm search <keyword>
/svm buy <quantity> <item> [seller]
/svm cash <value> <quantity>
/svm exchange <amount>
/svm order <price> <amount>
/svm supply <quantity>
管理员:
/svm admin balance <player>
/svm admin set <player> <amount>
/svm admin add <player> <amount>
/svm admin remove <player> <amount>
/svm admin rank
/svm admin history <player> [page]
/svm admin price <price> [limit]
/svm admin pull
/svm admin purchase <price> [limit]
/svm admin cash <value>
/svm admin cash get
/svm admin cash del
/svm admin cash list [item]
/svm admin reload
更新日志
- 指令措辞更新:
- 采购订单:
/svm purchase->/svm order - 卖给买家:
/svm selltopurchase->/svm supply
- 采购订单:
- 移除指令组:
/svm edit(管理员命令现位于/svm admin下)。 - 已弃用:
/svm admin lang
Placeholder API
仅在安装 Placeholder API 时可用(仅限 1.21.9+ JAR 包):
%server-market:balance%%server-market:balance_short%%server-market:parcel_count%%server-market:player_name%%server-market:top_name:<rank>%(排名 1–10)%server-market:top_balance:<rank>%(排名 1–10)%server-market:top_balance_short:<rank>%(排名 1–10)
集成 API
入口点:asagiribeta.serverMarket.api.ServerMarketApiProvider
getBalance,hasEnough,getParcelCountaddBalance,withdraw,setBalance,transfergetTopBalances,getHistory,format,openMenu,getModVersion
EconomyProvider(Vault 风格):asagiribeta.serverMarket.api.economy.EconomyProviderRegistry
withdraw,format
事件:
ServerMarketEvents.BALANCE_CHANGEDServerMarketEvents.PRE_PURCHASE(返回 false 以取消)ServerMarketEvents.POST_PURCHASE
配置 / 存储
配置文件:config/server-market/config.properties
游戏内重载:/svm admin reload
经济系统
| Key | Default | Description |
|---|---|---|
initial_player_balance |
100.0 |
首次加入玩家的初始余额 |
max_transfer_amount |
1000000.0 |
/svm pay 指令的最大转账金额 |
enable_transaction_history |
true |
记录交易历史 |
max_history_records |
10000 |
自动清理最旧的记录 |
enable_tax |
false |
对玩家商店销售征收税费 |
market_tax_rate |
0.05 |
税率(0.0–1.0) |
存储(SQLite — 默认)
| Key | Default | Description |
|---|---|---|
storage_type |
sqlite |
sqlite 或 mysql |
sqlite_path |
market.db |
数据库文件路径 |
存储(MySQL / XConomy)
设置 storage_type=mysql 并配置 mysql_host、mysql_port、mysql_database、mysql_user、mysql_password、mysql_use_ssl、mysql_jdbc_params。
XConomy 表名(当共享现有数据库时):
| Key | Default |
|---|---|
xconomy_player_table |
xconomy |
xconomy_non_player_table |
xconomynon |
xconomy_record_table |
xconomyrecord |
xconomy_login_table |
xconomylogin |
xconomy_system_account |
SERVER |
xconomy_write_record |
false |
设置 xconomy_write_record=true 可将交易镜像复制到 XConomy 的记录表中(仅限 MySQL)。
调试
| Key | Default | Description |
|---|---|---|
enable_debug_logging |
false |
详细调试日志 |
Server Market is a Fabric server-side mod that brings a complete player-driven economy and marketplace to your server. Players can check their balance, send money to others (even offline players), and review their transaction history — all through simple commands or an intuitive GUI. The mod features both a player market and a system shop where items can be listed, bought, and sold with full NBT variant support. It also supports purchase orders with parcel station delivery, so buyers can place requests and sellers can fulfill them without needing to meet face-to-face. Administrators can optionally introduce physical currency items, set up system shop prices, manage player balances directly, and configure the economy to suit their needs. Storage defaults to SQLite for zero-setup operation, but can be switched to MySQL with optional XConomy record mirroring for shared database environments. For server owners running 1.21.9 or newer, the mod bundles Placeholder API support out of the box. Developers can hook into the exposed API and event system to query balances, process transfers, intercept purchases, or integrate the economy into their own mods.
Requirements
Required:
- Fabric API (version matched to your MC version)
- Fabric Language Kotlin 1.13.8+kotlin.2.3.0
- Fabric Permissions API 0.5.0
Optional:
- LuckPerms (recommended) for permission management
- Placeholder API (1.21.9+ JAR only)
Commands
Player:
/svm
/svm menu
/svm money
/svm balance
/svm pay <player> <amount>
/svm history [page]
/svm sell <price>
/svm restock <quantity>
/svm pull
/svm list
/svm search <keyword>
/svm buy <quantity> <item> [seller]
/svm cash <value> <quantity>
/svm exchange <amount>
/svm order <price> <amount>
/svm supply <quantity>
Admin:
/svm admin balance <player>
/svm admin set <player> <amount>
/svm admin add <player> <amount>
/svm admin remove <player> <amount>
/svm admin rank
/svm admin history <player> [page]
/svm admin price <price> [limit]
/svm admin pull
/svm admin purchase <price> [limit]
/svm admin cash <value>
/svm admin cash get
/svm admin cash del
/svm admin cash list [item]
/svm admin reload
Updates
- Command wording updated:
- purchase order:
/svm purchase->/svm order - sell to buyer:
/svm selltopurchase->/svm supply
- purchase order:
- Removed command group:
/svm edit(admin commands are now under/svm admin). - Deprecated:
/svm admin lang
Placeholder API
Available in the 1.21.9+ JAR only when Placeholder API is installed:
%server-market:balance%%server-market:balance_short%%server-market:parcel_count%%server-market:player_name%%server-market:top_name:<rank>%(rank 1–10)%server-market:top_balance:<rank>%(rank 1–10)%server-market:top_balance_short:<rank>%(rank 1–10)
Integration API
Entry point: asagiribeta.serverMarket.api.ServerMarketApiProvider
getBalance,hasEnough,getParcelCountaddBalance,withdraw,setBalance,transfergetTopBalances,getHistory,format,openMenu,getModVersion
EconomyProvider (Vault-style): asagiribeta.serverMarket.api.economy.EconomyProviderRegistry
withdraw,format
Events:
ServerMarketEvents.BALANCE_CHANGEDServerMarketEvents.PRE_PURCHASE(return false to cancel)ServerMarketEvents.POST_PURCHASE
Configuration / Storage
Config file: config/server-market/config.properties
Reload in-game: /svm admin reload
Economy
| Key | Default | Description |
|---|---|---|
initial_player_balance |
100.0 |
Balance for first-time joiners |
max_transfer_amount |
1000000.0 |
Max amount per /svm pay |
enable_transaction_history |
true |
Record transactions |
max_history_records |
10000 |
Auto-prune oldest records |
enable_tax |
false |
Tax on player shop sales |
market_tax_rate |
0.05 |
Tax rate (0.0–1.0) |
Storage (SQLite — default)
| Key | Default | Description |
|---|---|---|
storage_type |
sqlite |
sqlite or mysql |
sqlite_path |
market.db |
Database file path |
Storage (MySQL / XConomy)
Set storage_type=mysql and configure mysql_host, mysql_port, mysql_database, mysql_user, mysql_password, mysql_use_ssl, mysql_jdbc_params.
XConomy table names (when sharing an existing database):
| Key | Default |
|---|---|
xconomy_player_table |
xconomy |
xconomy_non_player_table |
xconomynon |
xconomy_record_table |
xconomyrecord |
xconomy_login_table |
xconomylogin |
xconomy_system_account |
SERVER |
xconomy_write_record |
false |
Set xconomy_write_record=true to mirror transactions into XConomy's record table (MySQL only).
Debug
| Key | Default | Description |
|---|---|---|
enable_debug_logging |
false |
Verbose debug logs |
下载 Server Market
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Server Market
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Server Market
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Server Market
下载 Server Market
下载 Server Market
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Server Market
下载 Server Market
下载 Server Market
下载 Server Market
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧