⚰️ DeathBan
死亡即被禁言——暂时性地。 DeathBan 会在玩家每次死亡时临时封禁该玩家,且每次死亡后的封禁时长都会增加。不再有无休止的 grief 聊天和瞬间复活造成的恶性循环——每一次死亡都要付出代价。
✨ 功能特性
- 自动死亡封禁 — 死亡后,玩家将被按设定时间封禁。无需管理员手动操作。
- 递增的封禁时长 — 每次死亡都会增加封禁时长,直至达到可配置的上限:
第 1 次死亡 → 5 分钟
第 2 次死亡 → 10 分钟
第 3 次死亡 → 15 分钟
第 10 次死亡 → 50 分钟
- 完全自动解封 — 封禁到期后会自动解除。玩家只需等待时间结束即可重新登录游戏。
- 持久化死亡记录 — 死亡次数和封禁过期时间会保存至磁盘,并在服务器重启后保留。使用清晰易读的时间戳(如
2026-08-13 14:23:45),而非一串难以辨认的数字。
- 可读倒计时 — “4 天 3 小时”、“12 分钟”、“37 秒” —— 被封禁的玩家(以及管理员)始终能清楚知道剩余时间。
- 全项可配置 — 初始封禁时长、每次死亡增加的时长、最大封禁时长、死亡/加入/广播消息,以及完整的颜色代码支持。
- 管理员工具包 — 查看任意玩家的信息、重置其记录、调整其死亡计数,或提前解除封禁。
- 豁免权限 — 赋予受信任玩家
deathban.exempt 权限,使其完全跳过死亡封禁。
- 代码整洁 — 仅使用现代 Paper API,无废弃方法;采用异步文件 I/O,确保存档操作不会导致服务器卡顿。
?️ 命令
| 命令 |
描述 |
/deathban info [player] |
查看死亡次数、当前封禁时长及剩余时间 |
/deathban reload |
重载配置文件,无需重启服务器 |
/deathban reset <player> |
清除玩家的死亡记录并解除任何活跃的封禁 |
/deathban setdeaths <player> <amount> |
手动设置玩家的死亡次数 |
/deathban unban <player> |
解除活跃封禁,但不影响其死亡计数 |
? 权限
| 权限 |
默认值 |
描述 |
deathban.use |
true |
查看自己的死亡/封禁信息 |
deathban.admin |
op |
访问所有管理员子命令 |
deathban.exempt |
false |
永远不会受到死亡封禁 |
⚙️ 配置
starting-ban: "5m"
increase-per-death: "5m"
maximum-ban: "7d"
death-message: "&c你已被死亡封禁 &e%time%&c。"
join-ban-message:
- "&c你目前正处于死亡封禁状态。"
- "&7剩余时间: &e%remaining%"
broadcast-deathban: true
broadcast-message: "&c%player% 已被死亡封禁 &e%time%&c。"
时间值支持 s(秒)、m(分)、h(时)、d(天)、w(周),甚至可以组合使用(例如 1d12h)。
? 要求
- Paper(或 Paper 分支)1.21.1 – 1.21.x
- Java 21
? 为什么选择 DeathBan?
非常适合硬核风格的生存服务器、半永久死亡挑战模式,或任何希望“死亡”真正带来痛感而不必采用完全永久死亡机制的社区。递增的惩罚机制意味着一次不幸的死亡只是轻微的警告——但一连串的失误将会付出越来越高的代价。
发现 Bug 或有功能建议?请在上方链接的源代码仓库中提交 Issue!
⚰️ DeathBan
Die, and you're out — for a little while. DeathBan temporarily bans players every time they die, with the ban getting longer each time. No more death spiral of grief chat and instant respawns — every death actually costs something.
✨ Features
- Automatic death bans — die, and you're banned for a set amount of time. No staff action required.
- Scaling ban durations — each death increases the ban length, up to a configurable cap:
Death 1 → 5 minutes
Death 2 → 10 minutes
Death 3 → 15 minutes
Death 10 → 50 minutes
- Fully automatic unban — bans expire on their own. Players can just log back in once their time is up.
- Persistent death tracking — death counts and ban expiry are saved to disk and survive restarts, using clean, human-readable timestamps (
2026-08-13 14:23:45, not a wall of numbers).
- Readable countdowns — "4 days 3 hours", "12 minutes", "37 seconds" — banned players (and admins) always know exactly how long is left.
- Configurable everything — starting ban, increase per death, maximum ban, death/join/broadcast messages, and full color code support.
- Admin toolkit — check any player's info, reset their record, adjust their death count, or lift a ban early.
- Exemption permission — give trusted players
deathban.exempt to skip the death ban entirely.
- Built clean — modern Paper API only, no deprecated methods, async file I/O so saves never lag the server.
?️ Commands
| Command |
Description |
/deathban info [player] |
Death count, current ban length, and time remaining |
/deathban reload |
Reload the config without restarting |
/deathban reset <player> |
Wipe a player's deaths and lift any active ban |
/deathban setdeaths <player> <amount> |
Manually set a player's death count |
/deathban unban <player> |
Lift an active ban without touching their death count |
? Permissions
| Permission |
Default |
Description |
deathban.use |
true |
Check your own death/ban info |
deathban.admin |
op |
Access to all admin subcommands |
deathban.exempt |
false |
Never receive a death ban |
⚙️ Configuration
starting-ban: "5m"
increase-per-death: "5m"
maximum-ban: "7d"
death-message: "&cYou have been death banned for &e%time%&c."
join-ban-message:
- "&cYou are currently death banned."
- "&7Remaining: &e%remaining%"
broadcast-deathban: true
broadcast-message: "&c%player% has been death banned for &e%time%&c."
Time values accept s, m, h, d, w, and can even be combined (1d12h).
? Requirements
- Paper (or a Paper fork) 1.21.1 – 1.21.x
- Java 21
? Why DeathBan?
Great for hardcore-adjacent survival servers, permadeath-lite challenges, or any community that wants dying to actually sting without going full permadeath. The scaling penalty means one unlucky death is a slap on the wrist — but a careless streak gets progressively more expensive.
Found a bug or have a feature request? Open an issue on the source repository linked above!
评论 0
登录后参与评分
还没有评论,来抢沙发吧