? DeathPenalty (免费版)
终极死亡惩罚、经济回收与生存平衡插件
奖励战术性生存,稳定服务器经济,并为每一次死亡赋予真正的意义,同时避免让玩家感到沮丧。
? 为什么选择 DeathPenalty?
在原版 Minecraft 和休闲 SMP 服务器中,死亡往往感觉要么毫无意义(例如开启 /gamerule keepInventory true 时,死亡被用作免费传送回家的手段),要么惩罚过重(将数小时辛苦获得的装备掉入岩浆或物品消失)。
此外,服务器经济因持续的通货膨胀而受损:玩家积累了数百万货币,却几乎没有自然的资金消耗渠道来保持货币流通。
DeathPenalty 以精准的方式解决这两个问题:
- 动态经济平衡: 引入公平且可扩展的货币扣除机制(固定费率或百分比)作为死亡惩罚。
- 重新平衡 KeepInventory: 确保物品库存安全的同时,通过经验值损失、重生疲劳/减益效果或物理掉落现金来强制执行真实的后果。
- 沉浸式生存风险: 死亡再次变得重要。鲁莽的行为将带来后果,鼓励精心准备、团队策略和谨慎探索。
- 现代无卡顿架构: 专为现代 Paper 和 Folia 区域多线程(从 1.16.5 到 PaperMC 26.2)从头构建,拥有针对 SQLite 和 MySQL 的双 HikariCP 连接池。
? 核心功能详解
? 1. 动态经济回收引擎
- 灵活的扣除模型: 在固定费用(例如每次死亡
$250.00)或基于玩家财富的百分比(例如当前余额的 5%)之间进行选择。
- 最低与最高限额: 通过设置最低余额安全阈值保护贫困的新手,同时确保富裕的老玩家面临有意义的扣除。
- 物理现金掉落: 丢失的资金可以选择性地以物理可收集物品的形式掉落在地上,支持自定义物品材质、显示名称和描述——允许击杀者或路过的玩家拾取这笔赏金!
- 完全兼容 Vault: 开箱即用,支持 EssentialsX、EconomyShopGUI、TheNewEconomy 以及任何基于 Vault 的经济系统。
? 2. 智能物品栏与经验值损失机制
- 选择性槽位与组掉落: 死亡时掉落或删除指定数量的物品组或物品栏槽位,而不是清空所有物品。
- 完美兼容 KeepInventory: 在开启
keepInventory true 的服务器上无缝运行,注入可控的后果而不破坏世界规则。
- 绑定物品免疫: 保护带有特殊 lore 标签的装备(例如捐赠者物品、任务神器、灵魂绑定装备)永远不会掉落或被销毁。
- 原汁原味 vanilla 经验值缩放: 精确的原版升级计算确保经验惩罚符合真实的 Minecraft 等级公式,而非任意的固定数值。
? 3. 重生生命体征与减益状态效果
- 自定义生命值与饥饿值: 控制玩家重生时的具体心数、饥饿值和饱和度。
- 减益状态效果: 在重生时暂时施加氛围药水效果(例如缓慢、采矿疲劳、虚弱、失明),以 discourge 鲁莽的“自杀式”玩法。
- 自定义持续时间与强度: 直接通过游戏内菜单为每种药水效果单独设置持续时间和效力。
? 4. 复仇亡灵怪物
- 愤怒的守护者: 在玩家死亡坐标处自动生成一个具有攻击性的自定义怪物(僵尸、骷髅、猪灵等)。
- 阳光防护: 怪物可以佩戴防护头盔以防止在阳光下燃烧。
- 战利品守卫者: 迫使玩家通过面对守护其坟墓的守护者来赢回他们掉落的战利品。
? 5. 动态单玩家多语言支持(10种语言)
- 10 种内置语言文件: 自动生成并翻译:
- ?? 英语 (
en_US)
- ?? 印尼语 (
id_ID)
- ?? 简体中文 (
zh_CN)
- ?? 日语 (
ja_JP)
- ?? 西班牙语 (
es_ES)
- ?? 意大利语 (
it_IT)
- ?? 阿拉伯语 (
ar_SA)
- ?? 德语 (
de_DE)
- ?? 法语 (
fr_FR)
- ?? 俄语 (
ru_RU)
- 即时单玩家切换: 每位玩家可以通过
/dp info 独立切换自己的个人语言,不影响其他玩家。
- 无需重载: 所有 14 个 GUI、死亡通知、动作栏和聊天提示立即更新。
? 6. 双数据库引擎 (HikariCP)
- SQLite 与 MySQL 就绪: 将死亡次数、终身损失金钱数和玩家设置存储在轻量级的本地 SQLite 或集中的 MySQL 网络中。
- 一键游戏内迁移器: 通过
/dp convert 或直接通过 GUI,轻松将您的整个数据库从 SQLite 迁移到 MySQL。
- 零延迟异步池: 由原生 HikariCP 驱动,带有 20 tick 的去抖缓冲,确保即使在大量玩家流量下也能实现 0.00ms 的 Tick 影响。
?️ 7. 100% 无 NMS 的 GUI 与交互式聊天提示
- 完整的游戏内可视化管理员: 通过
/dp config 以可视化方式配置每一项惩罚、百分比和限制。
- 安全的聊天输入系统: 通过直观的聊天提示直接输入数字和文本——无需脆弱的 Anvil 数据包,无需 NMS 依赖,并且在 Minecraft 版本更新中完全防崩溃。
? 游戏内预览
玩家统计与语言菜单 (/dp info) |
管理员可视化编辑器 (/dp config) |
 |
 |
| 药水重生效果编辑器 |
限制与掉落控制 |
 |
 |
? 安装与快速入门
- 验证要求:
- 服务端:Paper, Purpur, Folia 或 Spigot(版本从 1.16.5 至 PaperMC 26.2)。
- Java:Java 17、Java 21 或 Java 25。
- 经济插件:Vault + 任意经济插件(例如 EssentialsX)。
- 下载与放置:
- 下载最新的
DeathPenalty-1.9.1.jar 并将其放入服务端的 plugins/ 目录中。
- 启动服务器:
- 启动服务器以在
plugins/DeathPenalty/ 中生成默认配置文件和语言模板。
- 自定义设置:
- 通过
/dp config 在游戏内修改设置,或直接调整 config.yml 文件。
- 运行
/dp reload 即可即时应用文件更改!
⌨️ 命令与权限
命令
| 命令 |
别名 |
描述 |
默认权限 |
/dp info |
/deathpenalty info |
打开个人死亡统计信息与语言选择器 GUI |
授予所有玩家 |
/dp config |
/deathpenalty config |
打开完整的可视化管理配置编辑器 |
deathpenalty.admin |
/dp reload |
/deathpenalty reload |
热重载配置文件、语言文件和缓存 |
deathpenalty.admin |
/dp convert |
/deathpenalty migrate |
启动数据库迁移向导(SQLite ⇄ MySQL) |
deathpenalty.admin |
/dp help |
/deathpenalty help |
显示帮助手册及可用命令列表 |
授予所有玩家 |
权限节点
| 权限节点 |
描述 |
推荐用途 |
deathpenalty.admin |
对配置、重载和迁移拥有完全的管理控制权 |
服务器操作员 / 管理员 |
deathpenalty.bypass |
完全豁免:免疫所有惩罚、掉落和负面效果 |
工作人员 / VIP 上帝模式 |
deathpenalty.bypass.money |
豁免所有货币扣除和现金掉落 |
捐赠者 / 等级特权 |
deathpenalty.bypass.exp |
豁免死亡时的经验值损失 |
捐赠者 / 等级特权 |
deathpenalty.bypass.items |
豁免随机物品掉落和物品删除 |
捐赠者 / 等级特权 |
deathpenalty.group.<group> |
分配在 config.yml 中定义的特定于自定义组的惩罚覆盖规则 |
分级排名(VIP, MVP) |
? PlaceholderAPI 集成
DeathPenalty 提供了丰富的 PlaceholderAPI 标识符 (%dp_...%),可用于记分板、TAB 列表、聊天格式和全息文本:
| 占位符 |
输出示例 |
描述 |
%dp_deaths% / %dp_total_deaths_raw% |
14 |
玩家的总死亡次数 |
%dp_total_death% |
14 deaths |
格式化后的死亡计数字符串 |
%dp_money_lost_player% |
$1,250.00 |
玩家损失的总金额(格式化) |
%dp_money_lost_raw% |
1250.00 |
玩家损失的原始金额数值 |
%dp_total_money_lost% |
$48,500.00 |
全服所有玩家损失的总金额 |
%dp_total_money_lost_<world>% |
$12,300.00 |
特定世界内的总损失金额(例如 world_nether) |
%dp_top_death% |
Steve |
死亡次数最多的玩家名称 |
%dp_top_money_lost% |
Alex |
损失金钱最多的玩家名称 |
%dp_lang% |
en_US |
玩家当前激活的语言代码 |
?️ WorldGuard 7 集成
想在 PvP 竞技场、小游戏大厅或出生点区域禁用死亡惩罚吗?
DeathPenalty 注册了一个自定义的 WorldGuard 标志:
# 在特定区域内禁用死亡惩罚:
/rg flag <region_name> deathpenalty deny
# 在特定区域内重新启用死亡惩罚:
/rg flag <region_name> deathpenalty allow
? 探索 DeathPenalty Premium
想要将死亡转化为沉浸式的 RPG 游戏体验吗?DeathPenalty Premium 增加了以下功能:
- ? 灵魂稳定系统: 动态的灵魂不稳定点数、递增倍率以及恢复性的生存仪式(睡眠、生存计时器、灵魂碎片)。
- ? 多牧师 NPC 管理: 在城镇和村庄中放置持久的牧师 NPC,支持自定义治疗费用、对话和保险政策。
- ?️ 死亡保险系统: 玩家可以购买分级保险政策,以保护库存并找回丢失的资产。
- ☠️ 死亡诅咒系统: 死亡时施加的可怕灵魂折磨,需要通过草药净化或神圣仪式来解除。
? DeathPenalty (Free Edition)
The Ultimate Death Consequence, Economy Sink & Survival Balancing Plugin
Reward tactical survival, stabilize your server economy, and give real meaning to every death without frustrating your players.
? Why DeathPenalty?
In vanilla Minecraft and casual SMP servers, death often feels either completely meaningless (with /gamerule keepInventory true, where dying is used as a free teleport back home) or overly punishing (losing hours of hard-earned gear into lava or despawning items).
Furthermore, server economies suffer from constant inflation: players accumulate millions of currency with very few natural sinks to keep money circulating.
DeathPenalty solves both problems with surgical precision:
- Dynamic Economic Balance: Introduce fair, scalable currency deductions (flat rate or percentage) upon death.
- Rebalancing KeepInventory: Keep item inventories safe while still enforcing real consequences through EXP loss, respawn fatigue/debuffs, or physical dropped cash.
- Immersive Survival Stakes: Death matters again. Careless play incurs consequences, encouraging smart preparation, team strategy, and cautious exploration.
- Modern, Lag-Free Architecture: Built from the ground up for modern Paper and Folia regional multi-threading (1.16.5 up to PaperMC 26.2), with dual HikariCP connection pooling for SQLite and MySQL.
? Key Features Breakdown
? 1. Dynamic Economy Sink Engine
- Flexible Deduction Models: Choose between a fixed flat cost (e.g.
$250.00 per death) or a percentage of player wealth (e.g. 5% of current balance).
- Minimum & Maximum Floors: Protect impoverished newcomers with minimum balance safety thresholds while ensuring wealthy veterans face meaningful deductions.
- Physical Cash Drops: Lost funds can optionally drop as physical collectible items on the ground with customizable item materials, display names, and lore—allowing killers or passersby to scavenge the bounty!
- Full Vault Compatibility: Works out of the box with EssentialsX, EconomyShopGUI, TheNewEconomy, and any Vault-backed economy.
? 2. Smart Inventory & EXP Loss Mechanics
- Selective Slot & Stack Drops: Drop or permanently delete a configurable number of item stacks or inventory slots on death instead of wiping everything.
- Full KeepInventory Harmony: Functions seamlessly on servers with
keepInventory true, injecting controlled consequences without breaking world rules.
- Soulbound Item Immunity: Protect special lore-tagged gear (e.g. donor items, quest artifacts, soulbound equipment) from ever being dropped or destroyed.
- Authentic Vanilla EXP Scaling: Precise vanilla leveling calculations ensure experience penalties match genuine Minecraft level formulas rather than arbitrary flat numbers.
? 3. Respawn Vitals & Debuff Status Effects
- Custom Health & Hunger: Control the exact amount of hearts, hunger bars, and saturation players respawn with.
- Debuff Status Effects: Temporarily inflict atmospheric potion effects on respawn (e.g. Slowness, Mining Fatigue, Weakness, Blindness) to discourage reckless "kamikaze" gameplay.
- Custom Durations & Amplifiers: Set individual durations and potencies for every potion effect directly via in-game menus.
? 4. Revenge Revenant Mobs
- Vengeful Guardians: Automatically spawn an aggressive custom mob (Zombie, Skeleton, Piglin, etc.) directly at the player's death coordinate.
- Sunlight Protection: Mobs can spawn wearing protective helmets to prevent daylight burning.
- Loot Defenders: Forces players to earn back their dropped loot by confronting the guardian that watches over their grave.
? 5. Dynamic Per-Player Multi-Language (10 Languages)
- 10 Built-in Language Files: Automatically generated and translated:
- ?? English (
en_US)
- ?? Bahasa Indonesia (
id_ID)
- ?? Simplified Chinese (
zh_CN)
- ?? Japanese (
ja_JP)
- ?? Spanish (
es_ES)
- ?? Italian (
it_IT)
- ?? Arabic (
ar_SA)
- ?? German (
de_DE)
- ?? French (
fr_FR)
- ?? Russian (
ru_RU)
- Instant Per-Player Toggle: Each player can switch their personal language independently via
/dp info without affecting other players.
- Zero Reload Required: All 14 GUIs, death notices, actionbars, and chat prompts update instantaneously.
? 6. Dual Database Engine (HikariCP)
- SQLite & MySQL Ready: Store death counts, lifetime money lost, and player settings in lightweight local SQLite or centralized MySQL networks.
- 1-Click In-Game Migrator: Easily transfer your entire database from SQLite to MySQL on the fly via
/dp convert or directly through the GUI.
- Zero-Lag Asynchronous Pooling: Powered by native HikariCP with a 20-tick debounce buffer, ensuring a 0.00ms tick impact even under heavy player traffic.
?️ 7. 100% NMS-Free GUI & Interactive Chat Prompts
- Full Visual In-Game Admin: Configure every penalty, percentage, and limit visually with
/dp config.
- Safe Chat Input System: Enter numbers and text directly through intuitive chat prompts—no fragile Anvil packets, no NMS dependencies, and completely crash-proof across Minecraft updates.
? In-Game Preview
Player Stats & Language Menu (/dp info) |
Admin Visual Editor (/dp config) |
 |
 |
| Potion Respawn Effects Editor |
Limits & Drop Controls |
 |
 |
? Installation & Quick Start
- Verify Requirements:
- Server: Paper, Purpur, Folia, or Spigot (1.16.5 up to PaperMC 26.2).
- Java: Java 17, Java 21, or Java 25.
- Economy Provider: Vault + any economy plugin (e.g. EssentialsX).
- Download & Place:
- Download the latest
DeathPenalty-1.9.1.jar and place it into your server's plugins/ directory.
- Start Server:
- Start your server to generate default configuration files and language templates in
plugins/DeathPenalty/.
- Customize:
- Modify settings in-game via
/dp config or adjust config.yml directly.
- Run
/dp reload to apply file changes instantly!
⌨️ Commands & Permissions
Commands
| Command |
Alias |
Description |
Default Permission |
/dp info |
/deathpenalty info |
Opens personal death statistics & language selector GUI |
Granted to all players |
/dp config |
/deathpenalty config |
Opens the full visual administrative configuration editor |
deathpenalty.admin |
/dp reload |
/deathpenalty reload |
Hot-reloads configuration, language files, and caches |
deathpenalty.admin |
/dp convert |
/deathpenalty migrate |
Launches the database migration wizard (SQLite ⇄ MySQL) |
deathpenalty.admin |
/dp help |
/deathpenalty help |
Displays the help manual and available commands |
Granted to all players |
Permissions
| Permission Node |
Description |
Recommendation |
deathpenalty.admin |
Full administrative control over configs, reloads, and migration |
Server Operators / Admins |
deathpenalty.bypass |
Complete bypass: immune to all penalties, drops, and debuffs |
Staff / VIP Godmode |
deathpenalty.bypass.money |
Exemption from all currency deductions and cash drops |
Donors / Rank perk |
deathpenalty.bypass.exp |
Exemption from experience loss upon death |
Donors / Rank perk |
deathpenalty.bypass.items |
Exemption from random inventory drops and item deletion |
Donors / Rank perk |
deathpenalty.group.<group> |
Assigns custom group-specific penalty overrides defined in config.yml |
Tiered Ranks (VIP, MVP) |
? PlaceholderAPI Integration
DeathPenalty provides rich PlaceholderAPI identifiers (%dp_...%) for scoreboards, TAB lists, chat formats, and holograms:
| Placeholder |
Output Example |
Description |
%dp_deaths% / %dp_total_deaths_raw% |
14 |
Total number of deaths for the player |
%dp_total_death% |
14 deaths |
Formatted death count string |
%dp_money_lost_player% |
$1,250.00 |
Formatted total money lost by the player |
%dp_money_lost_raw% |
1250.00 |
Raw numeric money lost by the player |
%dp_total_money_lost% |
$48,500.00 |
Server-wide total money lost across all players |
%dp_total_money_lost_<world>% |
$12,300.00 |
Total money lost within a specific world (e.g. world_nether) |
%dp_top_death% |
Steve |
Name of the player with the highest death count |
%dp_top_money_lost% |
Alex |
Name of the player who has lost the most money |
%dp_lang% |
en_US |
Active language code of the player |
?️ WorldGuard 7 Integration
Want to disable death penalties inside PvP arenas, minigame lobbies, or spawn regions?
DeathPenalty registers a custom WorldGuard flag:
# Disable death penalty inside a specific region:
/rg flag <region_name> deathpenalty deny
# Re-enable death penalty inside a specific region:
/rg flag <region_name> deathpenalty allow
? Check Out DeathPenalty Premium
Looking to transform death into an immersive RPG gameplay system? DeathPenalty Premium adds:
- ? Soul Stability System: Dynamic soul instability points, escalating multipliers, and restorative survival rituals (sleep, survival timers, soul shards).
- ? Multi-Cleric NPC Management: Place persistent cleric NPCs in towns and villages with customizable treatment fees, dialogue, and insurance policies.
- ?️ Death Insurance System: Players can purchase tiered insurance policies to safeguard inventories and recover lost assets.
- ☠️ Death Curse System: Terrifying soul afflictions inflicted on death requiring herbal cleanses or sacred rituals.
评论 0
登录后参与评分
还没有评论,来抢沙发吧