ServerBounties
适用于 Paper/Purpur 26.3 的玩家赏金与杀手合约。 为某位玩家的头颅定价,或通过完整的合约协商系统雇佣其他玩家作为杀手——所有功能均由图形用户界面(GUI)驱动,并由你的经济插件支持。
功能特性
- 赏金系统 — 为玩家设置金钱赏金;多名玩家可以共同对同一目标出资。提供公共赏金榜、按目标查看详细信息以及最高赏金排行榜。
- 按比例分配的击杀奖励 — 当目标死亡时,赏金将根据追踪到的 PvP 伤害进行分配,而不仅仅是给予最后一击者;决策树逻辑可处理环境伤害致死和自杀情况。
- 杀手系统 — 玩家可注册成为可用杀手,并设定自己的价格和服务时长限制;客户可通过 GUI 雇佣他们。
- 合约协商 — 通过专用菜单提议、反报价、接受、拒绝或撤销合约(包含用于调整客户与杀手收益分配比例的滑块)。
- 防刷机制 — 可配置的异常死亡检测及阈值,以防止使用小号或重复击杀进行滥用。
- BossBar 目标指示器 — 可为赏金目标和杀手目标配置 BossBar 显示。
- 经济系统 — 货币单位为整数分;首选 MultiBank(异步),备选 Vault。
- 可选集成(通过反射实现,无硬性依赖):CombatLOG、ServerFactions(例如同阵营规则)、PlayerSettings(按玩家设置语言)。
- 可配置的税率、广播阈值、音效以及完全自定义的 GUI 布局。
- 存储 — 使用单线程执行器上的 SQLite (WAL),所有查询均参数化。
命令
| 命令 |
描述 |
权限节点 |
/bounty (别名: /bounties) |
打开主菜单 |
serverbounties.bounty |
/bounty place |
打开放置赏金流程(选择一名玩家) |
serverbounties.bounty |
/bounty board |
打开赏金榜 |
serverbounties.bounty |
/bounty check <player> |
查看某玩家的赏金信息 |
serverbounties.bounty |
/bounty my |
查看你已发布的赏金 |
serverbounties.bounty |
/bounty top |
在聊天栏显示最高赏金列表 |
serverbounties.bounty |
/bounty remove <player> |
移除某玩家的所有赏金(退款) |
serverbounties.admin |
/bounty reload |
重载配置文件和语言文件 |
serverbounties.admin |
/hitman (别名: /contract) |
打开主菜单 |
serverbounties.hitman |
/hitman my (或 /hitman contracts) |
打开你的综合合约视图 |
serverbounties.hitman |
/hitman contract |
打开你当前活跃合约的详情 |
serverbounties.hitman |
/hitman settings |
打开你的杀手设置 |
serverbounties.hitman |
/hitman board |
打开杀手榜 |
serverbounties.hitman |
/hitman hire <hitman> |
开始与已选定的杀手签订合约 |
serverbounties.hitman |
/hitman register |
切换你作为杀手的可用状态 |
serverbounties.hitman |
权限
| 节点 |
描述 |
默认值 |
serverbounties.bounty |
放置赏金并查看赏金榜 |
true |
serverbounties.hitman |
使用杀手合约系统 |
true |
serverbounties.admin |
管理命令(移除赏金、重载配置) |
op |
配置
config.yml 中的关键部分:
economy:
mode: auto
priority: ["MultiBank", "Vault"]
bounty:
min-amount: 500
max-amount-per-contribution: 1000000
max-total-per-target: 10000000
tax-rate: 0.10
allow-offline-targets: false
broadcast-threshold: 5000
allow-same-faction: false
cancel-blocked-in-combat: true
hitman:
stale-negotiation-hours: 24
anonymous-broadcast: true
hitman-killed-client-percent: 85
defaults:
min-price: 100000
min-hours: 1
max-hours: 168
max-concurrent: 3
damage-tracking:
valid-kill-window-seconds: 300
suicide-window-seconds: 150
anti-exploit:
suspicious-death-threshold: 7
suspicious-death-window-minutes: 60
reveal-deathchest-coords: true
notifications:
bounty-placed-broadcast: true
target-bossbar: true
完整文件还包含完整的音效集以及详细的、按菜单划分的 GUI 槽位布局。
安装
- 需要 Paper 或 Purpur 26.3 以及 Java 25(2.0.0 版本运行于 26.2,1.x 版本运行于 1.21.x)。
- 安装经济插件提供商:要么使用 MultiBank,要么使用 Vault 配合一个 Vault 经济插件(如 EssentialsX、CMI 等)。
- 将
ServerBounties-2.0.0.jar 放入服务器的 plugins/ 文件夹中。
- 启动服务器以生成
config.yml,然后调整金额、税率、杀手默认设置以及防作弊阈值。
- 编辑配置后运行
/bounty reload。
依赖
- 经济插件(二选一): MultiBank 或 Vault + 一个 Vault 经济插件。
- 可选集成: CombatLOG、ServerFactions、PlayerSettings —— 均在运行时检测;非必需。
支持 / 源码
源代码:
ServerBounties
Player bounties and hitman contracts for Paper/Purpur 26.3. Put a price on a player's head, or hire another player as a hitman through a full contract-negotiation system — all driven by GUIs and backed by your economy.
Features
- Bounties — place money bounties on players; multiple players can contribute to the same target. A public bounty board, per-target detail views, and a top-bounties leaderboard.
- Proportional kill rewards — when a target dies, the bounty is distributed based on tracked PvP damage rather than only crediting the final hit, with a decision tree that handles environmental deaths and suicides.
- Hitman system — players register as available hitmen with their own price and duration limits; clients hire them through GUIs.
- Contract negotiation — propose, counter-offer, accept, decline, and rescind contracts (with a client/hitman payout split slider) via dedicated menus.
- Anti-farming safeguards — configurable suspicious-death detection and thresholds to curb alt/repeat-kill abuse.
- BossBar target indicators — configurable bossbars for bounty and hitman targets.
- Economy — money in integer cents; prefers MultiBank (async) with a Vault fallback.
- Optional integrations (reflection, no hard dependency): CombatLOG, ServerFactions (e.g. same-faction rules), PlayerSettings (per-player language).
- Configurable taxes, broadcast thresholds, sounds, and fully configurable GUI layouts.
- Storage — SQLite (WAL) on a single-threaded executor, all queries parameterized.
Commands
| Command |
Description |
Permission |
/bounty (alias: /bounties) |
Open the main menu |
serverbounties.bounty |
/bounty place |
Open the place-bounty flow (select a player) |
serverbounties.bounty |
/bounty board |
Open the bounty board |
serverbounties.bounty |
/bounty check <player> |
View bounties on a player |
serverbounties.bounty |
/bounty my |
View bounties you have placed |
serverbounties.bounty |
/bounty top |
Show the top bounties in chat |
serverbounties.bounty |
/bounty remove <player> |
Remove all bounties on a player (refunds) |
serverbounties.admin |
/bounty reload |
Reload configuration and language |
serverbounties.admin |
/hitman (alias: /contract) |
Open the main menu |
serverbounties.hitman |
/hitman my (or /hitman contracts) |
Open your combined contracts view |
serverbounties.hitman |
/hitman contract |
Open your active contract detail |
serverbounties.hitman |
/hitman settings |
Open your hitman settings |
serverbounties.hitman |
/hitman board |
Open the hitman board |
serverbounties.hitman |
/hitman hire <hitman> |
Start a contract with a hitman pre-selected |
serverbounties.hitman |
/hitman register |
Toggle your availability as a hitman |
serverbounties.hitman |
Permissions
| Node |
Description |
Default |
serverbounties.bounty |
Place bounties and view the bounty board |
true |
serverbounties.hitman |
Use the hitman contract system |
true |
serverbounties.admin |
Admin commands (remove bounties, reload) |
op |
Configuration
Key sections of config.yml:
economy:
mode: auto
priority: ["MultiBank", "Vault"]
bounty:
min-amount: 500
max-amount-per-contribution: 1000000
max-total-per-target: 10000000
tax-rate: 0.10
allow-offline-targets: false
broadcast-threshold: 5000
allow-same-faction: false
cancel-blocked-in-combat: true
hitman:
stale-negotiation-hours: 24
anonymous-broadcast: true
hitman-killed-client-percent: 85
defaults:
min-price: 100000
min-hours: 1
max-hours: 168
max-concurrent: 3
damage-tracking:
valid-kill-window-seconds: 300
suicide-window-seconds: 150
anti-exploit:
suspicious-death-threshold: 7
suspicious-death-window-minutes: 60
reveal-deathchest-coords: true
notifications:
bounty-placed-broadcast: true
target-bossbar: true
The full file also includes the complete sound set and detailed, per-menu GUI slot layouts.
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: either MultiBank, or Vault together with a Vault economy plugin (EssentialsX, CMI, etc.).
- Drop
ServerBounties-2.0.0.jar into your server's plugins/ folder.
- Start the server to generate
config.yml, then adjust amounts, tax rate, hitman defaults, and anti-exploit thresholds.
- Run
/bounty reload after editing configuration.
Dependencies
- Economy (one required): MultiBank or Vault + a Vault economy plugin.
- Optional integrations: CombatLOG, ServerFactions, PlayerSettings — all detected at runtime; none are required.
Support / Source
Source code:
评论 0
登录后参与评分
还没有评论,来抢沙发吧