CustomDeathMessages
面向 Minecraft 服务器的上下文感知死亡消息、音效、粒子及屏幕特效。
CustomDeathMessages 用一个完全可配置的消息引擎替换原版的死亡通知。你可以为每种伤害类型、权限组和世界分别设置不同的消息,添加十六进制颜色、音频和粒子效果、标题栏和操作栏,并精确控制谁能看到或听到每种特效。
亮点
- 按伤害类型、权限组和世界的独立消息 - 针对坠落、火焰、PvP、投射物以及所有 Bukkit 伤害类型提供不同的文本,支持
default、vip 和 admin 权限组。
- 真正的十六进制颜色 -
&#RRGGBB 和 <#RRGGBB> 会被正确渲染,而不是作为纯文本显示。
- 独立的广播模式 - 使用
GLOBAL(全局)、WORLD(世界)、RADIUS(半径)或 VICTIM_ONLY(仅受害者)来路由消息、音效、粒子、标题栏、操作栏和暗屏特效。
- 史诗级死亡 - 设置一个特殊概率,触发特殊消息、自定义音效、粒子爆发以及在死亡位置召唤闪电。
- 条件式消息 - 当条件匹配时才显示某一行,使用如
{distance}、{biome} 或 {victim_effects} 等占位符,并支持 AND/OR 逻辑及比较运算符。
- 丰富的占位符 - 包含受害者、击杀者、武器、生物群系、坐标、时间、费用等更多选项,可选支持 PlaceholderAPI 扩展。
- 可选集成 - 自动检测并支持 PlaceholderAPI、Vault(死亡消息费用)和 Essentials(昵称)。
- 安全重载 -
/cdm reload 会首先验证整个配置文件,若发现错误则中止应用,避免部署损坏的配置。
- 内置预览 -
/cdm test <cause> 可在不实际死亡的情况下展示最终消息。
- Minecraft 1.8 - 26.3 - 基于同一代码库生成适用于现代版和旧版的服务端构建。
需求
| 项目 |
现代版构建 |
旧版构建 |
| Minecraft |
1.21 - 26.3 |
1.8 - 1.20.x |
| Java |
21 或更高版本 |
8 或更高版本 |
| 服务端 |
Spigot, Paper, Purpur |
Spigot, Paper, Purpur |
| 可选组件 |
PlaceholderAPI, Vault (+ 经济插件), Essentials |
PlaceholderAPI, Vault (+ 经济插件), Essentials |
请下载与你的 Minecraft 版本匹配的 Modern JAR(适用于 Minecraft 1.21 - 26.3)或 Legacy JAR(适用于 Minecraft 1.8 - 1.20.x)。两个构建共享相同的配置文件、命令和功能,且无需同时安装。
音效、粒子、标题栏、操作栏、生物群系、药水效果和颜色均在运行时解析,因此相同的配置文件可以在不同版本间通用。被重命名的音效和粒子(例如 1.16 中的 EXPLOSION_LARGE 和 1.17+ 中的 EXPLOSION)会自动进行转换。
安装
- 下载与你 Minecraft 版本匹配的 JAR 文件,并将其放入
plugins/ 目录。
- 重启服务器。
- 编辑
plugins/CustomDeathMessages/config.yml 和 messages.yml。
- 运行
/cdm reload。
现有配置文件在更新过程中会予以保留。
文档
完整参考手册位于 GitHub Wiki:
- 安装与升级指南
- 命令与权限说明
config.yml 完整参考
messages.yml、权限组及条件消息
- 占位符列表
- 从源码构建
- 常见问题解答与故障排除
链接
许可证
依据 MIT License 发布 (c) 2026 SicklySurgeon。
CustomDeathMessages
Context-aware death messages, sounds, particles and screen effects for Minecraft servers.
CustomDeathMessages replaces vanilla death notifications with a fully configurable messaging engine. Choose different messages per damage cause, permission group and world, add hex colors, audio and particle effects, titles and action bars, and decide exactly who sees or hears each effect.
Highlights
- Per-cause, per-group and per-world messages - different texts for falling, fire, PvP, projectiles and every Bukkit damage cause, with
default, vip and admin groups.
- True hex colors -
&#RRGGBB and <#RRGGBB> are rendered correctly instead of being displayed as text.
- Independent broadcast modes - route messages, sounds, particles, titles, action bars and the darken-screen effect with
GLOBAL, WORLD, RADIUS or VICTIM_ONLY.
- Epic deaths - a configurable chance for a special message, custom sound, particle burst and a lightning strike at the death location.
- Conditional messages - show a line only when a condition matches, using placeholders such as
{distance}, {biome} or {victim_effects} with AND/OR and comparison operators.
- Rich placeholders - victim, killer, weapon, biome, coordinates, time, cost and more, with optional PlaceholderAPI expansion support.
- Optional integrations - PlaceholderAPI, Vault (death message cost) and Essentials (nicknames), detected automatically.
- Safe reloads -
/cdm reload validates the whole configuration first and aborts on errors instead of applying a broken setup.
- Built-in previews -
/cdm test <cause> shows the final message without dying.
- Minecraft 1.8 - 26.3 - modern and legacy builds generated from the same code base.
Requirements
| Item |
Modern build |
Legacy build |
| Minecraft |
1.21 - 26.3 |
1.8 - 1.20.x |
| Java |
21 or newer |
8 or newer |
| Server |
Spigot, Paper, Purpur |
Spigot, Paper, Purpur |
| Optional |
PlaceholderAPI, Vault (+ economy plugin), Essentials |
PlaceholderAPI, Vault (+ economy plugin), Essentials |
Download the Modern JAR for Minecraft 1.21 - 26.3 and the Legacy JAR for Minecraft 1.8 - 1.20.x. Both builds share the same configuration files, commands and features, and never need to be installed together.
Sounds, particles, titles, action bars, biomes, potion effects and colors are resolved at runtime, so the same configuration works across versions. Renamed sounds and particles (for example EXPLOSION_LARGE on 1.16 and EXPLOSION on 1.17+) are translated automatically.
Installation
- Download the JAR that matches your Minecraft version and place it in
plugins/.
- Restart the server.
- Edit
plugins/CustomDeathMessages/config.yml and messages.yml.
- Run
/cdm reload.
Existing configuration files are preserved across updates.
Documentation
The full reference lives in the GitHub Wiki:
- Installation and upgrades
- Commands and permissions
- Complete
config.yml reference
messages.yml, groups and conditional messages
- Placeholders
- Building from source
- FAQ and troubleshooting
Links
License
Released under the MIT License (c) 2026 SicklySurgeon.
评论 0
登录后参与评分
还没有评论,来抢沙发吧