CommunityMarket
一个仅通过 GUI 实现的社区拍卖行,适用于 Paper/Purpur 26.3。 玩家完全通过库存菜单来上架、浏览、购买和竞拍物品——只需一条命令即可打开所有功能。
CommunityMarket 是一个专注的玩家间市场:提供固定价格列表和完整拍卖功能,并带有领地存储系统,确保当库存满时物品和收益都不会丢失。
特性
- 固定价格列表 — 玩家可以以设定价格上架物品;其他人可通过 GUI 浏览和购买。
- 拍卖 — 带有时限的拍卖,支持竞价、一口价购买、最低加价幅度以及可配置的防截胡扩展功能。
- 领地存储 — 来自销售、拍卖获胜以及过期/退回的物品会安全地等待领取在领地菜单中。
- 待处理收益 — 销售收入会累积,由卖家手动提取。
- 可配置税费 — 分别针对固定价格销售和拍卖销售设置不同的费率。
- 物品黑名单 — 禁止列出包含特定材质或名称/描述关键词的物品。
- 通知 — 关于销售、被超越出价、拍卖获胜及过期的通知。
- 经济系统通过 Vault(首选)实现,并提供直接的 EssentialsX 回退方案。
- 存储 — 默认使用 SQLite 或 MySQL(HikariCP 连接池),完全异步,所有查询均参数化。
命令
| 命令 |
描述 |
权限节点 |
/market (别名: /cmarket) |
打开社区市场主菜单 |
communitymarket.use |
其他所有操作——上架、购买、竞价、领取、提现和管理员操作——均通过 GUI 完成。
权限
| 节点 |
描述 |
默认值 |
communitymarket.use |
访问市场 GUI |
true |
communitymarket.sell |
创建固定价格列表 |
true |
communitymarket.auction |
创建拍卖 |
true |
communitymarket.buy |
从市场购买 |
true |
communitymarket.bid |
参与拍卖竞价 |
true |
communitymarket.claim |
从存储中领取物品 |
true |
communitymarket.withdraw |
提取收益 |
true |
communitymarket.admin |
访问管理员功能 |
op |
communitymarket.* |
授予所有 CommunityMarket 权限 |
op |
配置
config.yml 的关键部分:
economy:
currency-symbol: "$"
taxes:
market-tax: 5.0 # 卖家支付,固定价格销售
auction-tax: 7.5 # 卖家支付,拍卖销售
market:
max-listings-per-player: 20
default-duration-hours: 168
min-price: 1.0
max-price: 1000000000.0
auction:
max-auctions-per-player: 10
min-bid-increment-percent: 5.0
anti-snipe:
enabled: true
trigger-seconds: 30 # 在此时间前出价将延长拍卖
extension-seconds: 30
max-extensions: 10 # 0 = 无限次
database:
type: sqlite # sqlite | mysql
完整文件还涵盖可用时长、GUI 音效、通知以及性能/缓存间隔等设置。
安装
- 需要 Paper 或 Purpur 26.3 以及 Java 25(2.0.0 版本运行于 26.2,1.x 版本运行于 1.21.x)。
- 安装经济插件:Vault 配合任意 Vault 经济插件(如 EssentialsX、CMI 等),或单独安装 EssentialsX。
- 将
CommunityMarket-2.0.0.jar 放入服务器的 plugins/ 文件夹。
- 启动服务器以生成
config.yml,然后根据需求调整税率、限制和持续时间。
如果在启动时未找到任何经济插件,插件日志会提供清晰的安装指导。
依赖项
- 经济系统(必需): Vault + 任意 Vault 经济插件,或直接使用 EssentialsX。由于存在不安装 Vault 而直接使用 EssentialsX 的路径,因此 Vault 被列为可选依赖项。
支持 / 源码
源代码:
CommunityMarket
A GUI-only community auction house for Paper/Purpur 26.3. Players list, browse, buy, and auction items entirely through inventory menus — one command opens everything.
CommunityMarket is a focused, player-to-player marketplace: fixed-price listings and full auctions, with a claim-storage system so items and earnings are never lost when inventories are full.
Features
- Fixed-price listings — players list items at a set price; others browse and buy through the GUI.
- Auctions — timed auctions with bidding, buyout, minimum bid increments, and configurable anti-snipe extensions.
- Claim storage — items from sales, auction wins, and expired/returned listings wait safely in a claim menu.
- Pending earnings — sale proceeds accumulate and are withdrawn manually by the seller.
- Configurable taxes — separate rates for fixed-price sales and auction sales.
- Item blacklist — block materials and name/lore keywords from being listed.
- Notifications for sales, outbids, auction wins, and expirations.
- Economy via Vault (preferred) with a direct EssentialsX fallback.
- Storage — SQLite by default or MySQL (HikariCP pooled), fully async, with all queries parameterized.
Commands
| Command |
Description |
Permission |
/market (alias: /cmarket) |
Open the Community Market main menu |
communitymarket.use |
Everything else — listing, buying, bidding, claiming, withdrawing, and admin actions — is done through the GUI.
Permissions
| Node |
Description |
Default |
communitymarket.use |
Access the market GUI |
true |
communitymarket.sell |
Create fixed-price listings |
true |
communitymarket.auction |
Create auctions |
true |
communitymarket.buy |
Purchase from the market |
true |
communitymarket.bid |
Bid on auctions |
true |
communitymarket.claim |
Claim items from storage |
true |
communitymarket.withdraw |
Withdraw earnings |
true |
communitymarket.admin |
Access admin functions |
op |
communitymarket.* |
Grants all CommunityMarket permissions |
op |
Configuration
Key sections of config.yml:
economy:
currency-symbol: "$"
taxes:
market-tax: 5.0 # seller pays, fixed-price sales
auction-tax: 7.5 # seller pays, auction sales
market:
max-listings-per-player: 20
default-duration-hours: 168
min-price: 1.0
max-price: 1000000000.0
auction:
max-auctions-per-player: 10
min-bid-increment-percent: 5.0
anti-snipe:
enabled: true
trigger-seconds: 30 # a bid this close to the end extends the auction
extension-seconds: 30
max-extensions: 10 # 0 = unlimited
database:
type: sqlite # sqlite | mysql
The full file also covers available durations, GUI sounds, notifications, and performance/cache intervals.
Installation
- Requires Paper or Purpur 26.3 and Java 25 (2.0.0 runs on 26.2, 1.x on 1.21.x).
- Install an economy provider: Vault together with a Vault economy plugin (EssentialsX, CMI, etc.), or EssentialsX on its own.
- Drop
CommunityMarket-2.0.0.jar into your server's plugins/ folder.
- Start the server to generate
config.yml, then adjust taxes, limits, and durations to taste.
If no economy provider is found on startup, the plugin logs clear guidance on what to install.
Dependencies
- Economy (required): Vault + a Vault economy plugin, or EssentialsX directly. Vault is listed as an optional dependency because the EssentialsX-direct path also works without Vault installed.
Support / Source
Source code:
评论 0
登录后参与评分
还没有评论,来抢沙发吧