一款轻量级且模块化的赏金系统,适用于 PvP 服务器。玩家可以在其他玩家身上设置金钱赏金;击杀者在对目标造成有效击杀后会自动获得报酬。包含图形用户界面(GUI)、PlaceholderAPI 支持、随时间增长的赏金金额、防滥用机制以及可自定义的消息提示。
要求
- Paper 1.21.x (Java 21)
- Vault(必需)
- 兼容 Vault 的经济插件(例如 EssentialsX Economy)
- PlaceholderAPI(可选)
主要功能
- 集成经济系统(Vault)的赏金系统
- 带有分页功能(下一页/上一页)的“通缉令” GUI
- 赏金随时间增长(可配置的百分比与间隔)
- 防滥用机制:每个击杀者→目标的冷却时间,以及可选的同 IP 地址拦截
- 限制条件:最低赏金金额、单个目标的赏金上限、单玩家每日赏金上限
- 动态 PlaceholderAPI 占位符(全局排名和单玩家数据)
- 完全可配置的消息和广播(全局或基于权限)
- YAML 格式持久化存储
命令
- /recompensa <player> <amount> — 设置赏金
- /recompensa remover <player> — 管理员移除赏金
- /recompensa recarregar — 重载配置
- /recompensas — 打开“通缉令” GUI
权限
- bounties.create — 设置赏金
- bounties.gui — 打开 GUI
- bounties.admin.remove — 移除赏金(管理员)
- bounties.admin.reload — 重载插件(管理员)
- bounties.broadcast — 接收基于权限的广播(如果已启用)
占位符 (PlaceholderAPI)
- %bounties_valor_em_mim%
- %bounties_valor_<player>%
- %bounties_top_<n>_nome%
- %bounties_top_<n>_valor%
- 注意:排名相关的占位符采用轻度缓存机制(约 10 秒),以减少重新计算。
GUI
- 标题:“通缉令” (Most Wanted)
- 显示带有赏金的顶级玩家头像、名称及赏金金额
- 当目标超过 54 个时支持分页
- 点击操作受保护;通过箭头进行导航
配置亮点
- settings.minimum-bounty: 设置赏金的最低金额
- settings.payout.cooldown-seconds: 每个击杀者→目标的冷却时间(秒)
- settings.payout.block-same-ip: 防止来自同一 IP 地址的赏金发放
- settings.growth.enabled / interval-seconds / percent-per-interval / only-online / max-amount: 控制赏金增长的相关设置
- settings.limits.max-per-bounty: 单个目标的赏金上限
- settings.limits.per-player-per-day: 单玩家每日赏金上限
- settings.broadcast.enabled / mode: global|permission / permission: 控制广播的开关、模式及所需权限
安装方法
- 将
Vault 和经济插件放入 plugins/ 文件夹。
- 将
Bounties.jar 放入 plugins/ 文件夹。
- (可选)安装
PlaceholderAPI。
- 重启服务器。
- 根据需要编辑
plugins/Bounties/config.yml,然后运行 /recompensa recarregar 命令重载配置。
注意事项
- 所有货币格式化均遵循服务器的区域设置。
- 本插件专注于 PvP 赏金奖励;自杀或无效死亡将被忽略。
- 数据保存至
plugins/Bounties/data.yml。
A lightweight and modular bounty system for PvP servers. Players can place money bounties on others; killers get paid automatically on a valid kill. Includes GUI, PlaceholderAPI, growth over time, anti-abuse, and flexible messages.
Requirements
- Paper 1.21.x (Java 21)
- Vault (required)
- Economy plugin compatible with Vault (e.g., EssentialsX Economy)
- PlaceholderAPI (optional)
Key Features
- Bounties with economy integration (Vault)
- GUI “Most Wanted” with pagination (Next/Previous)
- Bounty growth over time (configurable percent + interval)
- Anti-abuse: cooldown per killer→target and optional same-IP block
- Limits: minimum bounty, per-target cap, per-player-per-day cap
- Dynamic PlaceholderAPI placeholders (top and per-player)
- Fully configurable messages and broadcasts (global or permission-based)
- Persistent storage in YAML
Commands
- /recompensa <player> <amount> — Place a bounty
- /recompensa remover <player> — Admin remove a bounty
- /recompensa recarregar — Reload configuration
- /recompensas — Open the Most Wanted GUI
Permissions
- bounties.create — Place bounties
- bounties.gui — Open GUI
- bounties.admin.remove — Remove bounties (admin)
- bounties.admin.reload — Reload plugin (admin)
- bounties.broadcast — Receive permission-based broadcasts (if enabled)
Placeholders (PlaceholderAPI)
- %bounties_valor_em_mim%
- %bounties_valor_<player>%
- %bounties_top_<n>_nome%
- %bounties_top_<n>_valor%
- Note: Top placeholders are lightly cached (~10s) to reduce recalculation.
GUI
- Title: “Mais Procurados” (Most Wanted)
- Shows top players with bounties as player heads, name and bounty amount
- Pagination for >54 targets
- Clicks are protected; navigation via arrows
Config Highlights
- settings.minimum-bounty: minimum amount to place
- settings.payout.cooldown-seconds: per killer→target cooldown
- settings.payout.block-same-ip: prevent same-IP payouts
- settings.growth.enabled / interval-seconds / percent-per-interval / only-online / max-amount
- settings.limits.max-per-bounty: cap per target
- settings.limits.per-player-per-day: cap per player/day
- settings.broadcast.enabled / mode: global|permission / permission
Installation
- Place
Vault and an economy plugin in plugins/.
- Drop
Bounties.jar in plugins/.
- (Optional) Install
PlaceholderAPI.
- Restart the server.
- Edit
plugins/Bounties/config.yml to your needs and /recompensa recarregar.
Notes
- All currency formatting follows the server locale.
- This plugin focuses on PvP bounty rewards; suicides or invalid deaths are ignored.
- Data is saved to
plugins/Bounties/data.yml.
评论 0
登录后参与评分
还没有评论,来抢沙发吧