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,vipandadmingroups. - True hex colors -
&#RRGGBBand<#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,RADIUSorVICTIM_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}withAND/ORand 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 reloadvalidates 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.ymlandmessages.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.ymlreference messages.yml, groups and conditional messages- Placeholders
- Building from source
- FAQ and troubleshooting
Links
License
Released under the MIT License (c) 2026 SicklySurgeon.
下载 CustomDeathMessages
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CustomDeathMessages
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CustomDeathMessages
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CustomDeathMessages
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CustomDeathMessages
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CustomDeathMessages
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CustomDeathMessages
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CustomDeathMessages
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CustomDeathMessages
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CustomDeathMessages
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
适用于 Minecraft 1.21 - 26.3 的现代构建版本(Java 21+)。请使用旧版构建版本以支持 Minecraft 1.8 - 1.20.x。
新增内容
- 为 Minecraft 1.8 - 1.20.x 提供的旧版构建版本,作为独立下载项发布。
- 运行时兼容层,涵盖音效、粒子效果、标题文字、动作栏、生物群系、药水效果、手持物品检测及十六进制颜色。
- 双向跨版本音效别名,包括链式映射,例如
ENTITY_LIGHTNING_BOLT_THUNDER->ENTITY_LIGHTNING_THUNDER->AMBIENCE_THUNDER。 - 双向跨版本粒子效果别名(
EXPLOSION<->EXPLOSION_LARGE、EXPLOSION_EMITTER<->EXPLOSION_HUGE、SMOKE<->SMOKE_NORMAL等)。 - 十六进制颜色回退机制:在缺少
ChatColor#of的服务器上,将使用最接近的传统颜色。 - 兼容 1.8 版本的标题文字和动作栏。
修复内容
- 修复了 Minecraft 1.9 - 1.12 中史诗级雷声音效被拒绝的问题。
- 修复了因 1.17 名称进行字面验证而导致 1.16.5 粒子效果被拒绝的问题。
- 修复了由于错误编码的检查逻辑导致即使验证通过
/cdmreload命令仍中止执行的问题。 - 修复了
/cdmconfig validate可能报告错误问题数量的问题。 - 修复了
/cdmbroadcast particle显示原始枚举名称而非配置名称的问题。 - 默认粒子效果不再依赖较新 API 中缺失的
Effect.CLOUD。
兼容性
| 构建版本 | Minecraft | Java |
|---|---|---|
| 现代版 | 1.21 - 26.3 | 21+ |
| 旧版 | 1.8 - 1.20.x | 8+ |
已在 Paper 1.8.8、1.12.2、1.16.5、1.20.6、1.21.11 和 26.3 上测试通过。未更改任何配置键。
上一个版本仅适用于 1.26+ 版本。此版本将从 1.21+ 起可用。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
自定义你的Minecraft头像!
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧