CustomDeathMessages
Advanced, context-aware death message and effect management for Minecraft servers.
CustomDeathMessages replaces standard server death notifications with a highly customizable, condition-based messaging engine. It provides server administrators with granular control over death messages, audio cues, particle effects, and visual overlays, ensuring that every player death aligns with the server's unique atmosphere and gameplay loop.
Table of Contents
- Core Capabilities
- Requirements
- Commands & Permissions
- Placeholder Reference
- Configuration Architecture
- Upgrade Guide (v1.4)
- Frequently Asked Questions
Core Capabilities
Context-Aware Messaging Engine
- Conditional Logic: Define complex message triggers using
AND/ORoperators and mathematical/string evaluations (e.g.,>,<,contains,equals). - Granular Routing: Assign specific messages based on permission groups (VIP, Admin, Default), specific worlds, or individual death causes.
- Message Cooldowns: Built-in logic prevents the same randomized message from displaying consecutively to the same player.
Advanced Broadcast System
Take absolute control over who experiences death effects. Every effect (Messages, Sounds, Particles, Titles, Action Bars) can be routed independently using four distinct modes:
- GLOBAL: Broadcast to all online players across the entire server.
- WORLD: Restrict the effect to players in the same world as the victim.
- RADIUS: Limit the effect to players within a configurable block radius.
- VICTIM_ONLY: Ensure the effect is only seen/heard by the player who died.
Visual and Audio Effects
- Custom Audio: Assign global or group-specific death sounds with adjustable volume and pitch.
- Particle Systems: Trigger custom particle explosions or ambient effects upon death.
- Screen Overlays: Utilize Titles, Subtitles, and Action Bars for immediate visual feedback.
- Darken Screen Effect: Simulate a fading/darkening screen effect using localized ambient particles.
- Epic Deaths: Configure a percentage-based chance for "Epic" deaths, triggering unique messages, overridden audio/visuals, and environmental effects like lightning strikes.
Economy and Administration
- Vault Integration: Charge players a configurable fee for displaying custom death messages, with exemption lists for staff or VIP groups.
- Atomic Reloading: The
/cdm reloadcommand validates the entire configuration in memory before applying it. If validation fails, the plugin safely aborts the reload, preventing server crashes or broken states. - Comprehensive Testing Suite: Preview and calibrate messages, sounds, and broadcast radii in real-time without requiring actual player deaths.
Requirements
- Server Software: Spigot, Paper, or compatible fork.
- Minecraft Version: 26.3
- Java Environment: Java 17 or higher.
- Soft Dependencies (Optional):
- PlaceholderAPI: For expanding messages with external plugin placeholders.
- Vault: For economy integration and per-message costing.
- EssentialsX: For automatic nickname resolution in death messages.
Commands & Permissions
All primary commands are routed through the unified /cdm namespace for a streamlined administrative experience.
| Command | Description | Permission |
|---|---|---|
/cdm test <cause> [killer] [source] |
Simulates a death event to preview messages and effects. | cdm.test |
/cdm broadcast <type> <mode> [args] |
Manually triggers and tests broadcast effects (sound, particle, message). | cdm.broadcast |
/cdm config validate |
Runs a deep structural validation of config.yml and messages.yml. |
cdm.reload |
/cdm reload |
Safely reloads all configuration files with atomic validation. | cdm.reload |
/cdm help [command] |
Displays comprehensive, context-aware documentation. | cdm.use |
Permission Nodes
| Permission Node | Description | Default |
|---|---|---|
cdm.use |
Base access to the /cdm command router and help menus. |
true |
cdm.test |
Allows usage of the testing and simulation suite. | op |
cdm.broadcast |
Allows manual triggering of broadcast effects. | op |
cdm.reload |
Grants access to reload and validation commands. | op |
cdm.bypass |
Exempts the player from triggering death messages or effects. | false |
cdm.message.vip |
Assigns the player to the "vip" message and effect group. | false |
cdm.message.admin |
Assigns the player to the "admin" message and effect group. | false |
Placeholder Reference
The plugin natively resolves deep contextual data regarding the death event. These can be used in messages.yml and are fully compatible with PlaceholderAPI expansions.
| Placeholder | Description |
|---|---|
{victim} |
The display name (or nickname) of the player who died. |
{killer_name} |
The entity responsible for the kill (e.g., the Player who shot the arrow, or the Creeper). |
{killer_source} |
The direct source of the damage (e.g., "Arrow", "Fireball", "Lava"). |
{killer_displayname} |
The killer's formatted display name, including external prefixes/suffixes. |
{cause} |
The technical Bukkit damage cause (e.g., FALL, ENTITY_ATTACK, VOID). |
{world} |
The name of the world where the death occurred. |
{biome} |
The formatted name of the biome (e.g., "Deep Dark", "Nether Wastes"). |
{x}, {y}, {z} |
The exact block coordinates of the death location. |
{distance} |
The distance in blocks between the victim and the killer (formatted to one decimal). |
{victim_weapon} |
The display name of the item held in the victim's main hand. |
{victim_effects} |
A comma-separated list of active potion effects on the victim. |
{time} |
The current server time, formatted via config.yml. |
{cost} |
The economic cost deducted for the message (if Vault is enabled). |
Configuration Architecture
The plugin separates routing logic from text and visual definitions to ensure clean maintainability:
config.yml: Governs global server behavior. This includes broadcast routing modes, economy settings, global particle/sound definitions, visual effect toggles, and validation rules.messages.yml: Contains all text-based data. This includes conditional messages, group-specific definitions, epic death pools, and all system/command feedback messages. Server owners can fully translate or customize every string the plugin outputs without touching the codebase.
Upgrade Guide (v1.4)
Version 1.4 represents a major stability and architecture milestone.
- Platform Update: The plugin now targets Minecraft 26.3 and requires Java 17.
- Complete Language Externalization: All hardcoded system messages, command errors, and help menus have been moved to
messages.yml. You can now fully translate the plugin's administrative interface. - Killer Resolution Overhaul: The logic for determining
{killer_name}and{killer_source}has been completely rewritten to accurately distinguish between environmental deaths, projectile shooters, and direct melee attackers, fixing edge cases where victims were incorrectly listed as their own killers. - Thread Safety: Asynchronous event handling has been corrected to ensure all world and entity data is processed strictly on the main server thread, eliminating concurrency errors on high-population servers.
Note: Your existing config.yml and messages.yml structures are fully backward compatible. The plugin will automatically generate any missing system-message keys upon startup.
Frequently Asked Questions
How does the plugin differentiate between {killer_name} and {killer_source}?
The tracking engine analyzes the damage event chain. If a player is killed by an arrow shot by a Skeleton, {killer_name} will resolve to "Skeleton" (the responsible entity), while {killer_source} will resolve to "Arrow" (the direct object that dealt the damage).
What happens if my configuration contains syntax errors during a reload?
The atomic reload system intercepts the process. If ConfigValidator detects structural errors, invalid placeholders, or missing required nodes, the reload is aborted. The plugin will continue running safely on the previous, stable configuration, and output a detailed diagnostic report to the administrator.
Can I restrict specific visual effects to only the dying player?
Yes. Using the effects-broadcast section in config.yml, you can set title-mode: VICTIM_ONLY and actionbar-mode: VICTIM_ONLY, while keeping sound-mode: WORLD to ensure nearby players hear the death sound without having their screens obstructed by UI elements.
Does this plugin support external economy plugins?
Yes. If Vault is installed and an economy provider is present, you can enable cost-per-death-message. You can also define exempt-groups-from-cost to ensure staff or specific VIP tiers are not charged for their death messages.
How to Install CustomDeathMessages (Plugin)
CustomDeathMessages by SicklySurgeon is verified for Bukkit, Paper, Purpur, Spigot across Minecraft versions 1.10, 1.10.1, 1.10.2, 1.11, 1.11.1, 1.11.2, 1.12, 1.12.1 (latest release: 1.5, file size: 133 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.10, 1.10.1, 1.10.2, 1.11, 1.11.1, 1.11.2, 1.12, 1.12.1) and platform (Bukkit, Paper, Purpur, Spigot).
- Make sure you have the compatible loader or environment installed for Bukkit, Paper, Purpur, Spigot.
- Move the downloaded CustomDeathMessages file into your Minecraft
.minecraft/pluginsfolder and launch the game.
All Versions
+ Add Version## Stability, Accuracy, Configuration Alignment, and Production Hardening Release
### Description
Version 1.5 is a major maintenance release focused on correctness, stability, and making advertised features behave as expected. This version fixes several critical issues affecting economy charges, message targeting, broadcast modes, epic deaths, reload behavior, test command reliability, killer/source resolution, placeholders, sound handling, particle handling, permissions, memory cleanup, update checking, optional integrations, and build/runtime compatibility.
The goal of this release is to align runtime behavior with configuration expectations, reduce silent failures, improve admin confidence, and make death messages more accurate and consistent in gameplay.
This revision also incorporates a deeper final audit pass that addressed additional edge cases found after the first 1.5 review, including economy exemption consistency, test command permission-group alignment, broadcast-mode synchronization, reload validation isolation, message-history cleanup, external placeholder resilience, nickname integration recovery, global particle delivery behavior, update-checker lifecycle safety, and build/runtime compatibility hardening.
## Release Statistics
| Category | Count |
|---|---:|
| Critical bug fixes | 18 |
| Standard bug fixes | 36 |
| Total bugs fixed | 54 |
| Stability, memory, and lifecycle improvements | 16 |
| Build and compatibility corrections | 8 |
| Quality-of-life improvements | 28 |
| Behavior changes | 10 |
| New additions | 8 |
| Total changelog entries | 124 |
# Critical Bug Fixes
## Economy and Death Message Charging
- Fixed the economy system not actually charging players when a death message was triggered.
- Death message costs configured by server owners are now enforced during the death flow.
- Players with insufficient funds are now handled correctly instead of silently receiving the full custom death flow.
- Added proper insufficient-funds feedback using configurable messaging.
- Added successful charge feedback using configurable messaging.
- Added exemption feedback so players who do not pay due to group exemption receive clearer behavior.
- Fixed group-based cost exemptions so exempt groups no longer pay the configured death message cost.
- Fixed exemption behavior so cost exemptions now depend on the player’s real permission group instead of only on the message-selection group.
- Improved behavior when the economy provider is missing or unavailable.
- The plugin now avoids breaking the death flow.
- A safer fallback behavior is used when economy integration cannot be completed.
- Improved economy provider recovery so late-loading economy integrations can become available without requiring a full restart.
- Improved validation of economy transactions instead of assuming withdrawal always succeeds.
- The cost placeholder now reflects an actually enforced cost rather tha
## Version 1.4
Now targeting Minecraft 26.3.
### Critical Bug Fixes
- Message Lookup System**
- Fixed group message cache building incorrect configuration paths. The cache searched for keys without the required parent prefix, causing all group messages to return null at runtime and fall back to the hardcoded default. Messages configured under permission groups now resolve correctly.
- Fixed cause-specific message keys using an incorrect section name. The lookup expected a different key structure than what the configuration file provides, causing cause-based messages such as FALL, FIRE, and ENTITY_ATTACK to never be found.
- Fixed default group message key mismatch. The cache builder searched for a key name that does not exist in the configuration schema.
- Fixed conditional message lookup using an incorrect path prefix. Conditional messages were searched at the wrong configuration depth, preventing all condition-based messages from being evaluated at runtime.
- Fixed conditional message default entries in the shorthand YAML format not being recognized. Entries using the single-key default notation were ignored because the parser only checked for the explicit condition and message pair format.
- Fixed group sound cache building paths without the required parent prefix, causing per-group death sounds to never load at runtime despite passing validation.
- Killer Resolution**
- Fixed environmental deaths incorrectly resolving the victim as their own killer. The fallback damage cause lookup used a method that returns the damaged entity rather than the damaging entity, causing deaths by lava, fire, fall, and void to display the victim's own name in the killer placeholder.
- Added defensive handling in the killer name placeholder to return a safe default when the killer is unresolved, preventing edge cases where the placeholder could resolve to an unintended value.
- Test Command**
- Fixed the test command rejecting all valid input due to a redundant subcommand check. The command router already consumed the subcommand keyword before passing arguments to the handler, but the handler still expected it, causing every invocation to return a usage error.
- Fixed argument parsing offset being misaligned by one position after the routing layer strips the subcommand keyword. This caused causes, killers, and sources to be read from the wrong argument positions.
- Fixed broadcast and effect flags being parsed as cause or killer arguments instead of being extracted before argument interpretation. Flags such as global, global-sound, and global-particles can now appear in any position without corrupting the parsed values.
- Fixed inconsistent usage documentation between two separate message entries. Both now display the same syntax.
- Epic Death System**
- Fixed epic death determination performing two independent random rolls, one for effects and one for message selection. This caused desynchronization where epi
This release addresses critical issues with configuration reloading, cross-world sound broadcasting, and localization consistency. Server owners upgrading from v1.2 should review the notes below before deployment.
## Bug Fixes
- Fixed a critical issue where
/cdmreloadwould unregister all event listeners without reinitializing them. This caused the plugin to stop intercepting player deaths, resulting in vanilla death messages appearing and making configuration changes appear ignored or reset. - Resolved an issue with the
GLOBALsound broadcast mode. Sounds were previously anchored to the victim's coordinates, causing distance-based attenuation and preventing playback for players in different worlds (particularly noticeable in Multiverse environments). Global sounds now play directly at each recipient's location, ensuring consistent server-wide audio. - Fixed configuration validation during reloads to properly abort on critical YAML parsing errors, preventing broken plugin states from malformed configuration files.
## Localization & Translations
- Corrected missing, inconsistent, and improperly formatted translation keys across
messages.ymland internal system messages. - Standardized language formatting and improved fallback strings to ensure reliable multi-language server support.
- Fixed color code parsing in localized messages to maintain consistent formatting across all supported languages.
## Technical Improvements
- Overhauled
ReloadManagerto safely reinitialize all event listeners, formatters, and dependency references during hot-reloads. - Updated
BroadcastManagerto dynamically adjust sound origin based on the configured broadcast mode.GLOBALandVICTIM_ONLYnow use recipient coordinates, whileWORLDandRADIUSretain victim coordinates for positional audio. - Improved internal caching and validation routines for configuration and message files.
## Upgrade Notes
- A full server restart is recommended when upgrading from v1.2 to clear any lingering listener states from previous reload attempts.
- If you maintain custom translations, review the updated
config.ymltemplate to ensure all corrected keys are properly merged. - The
/cdmreloadcommand is now fully functional and safe for production use. Configuration changes will apply immediately without requiring a server restart.
For detailed technical changes, refer to the commit history or source repository.
> **🎯 Focused on Accuracy & Stability**
> This update is a direct response to community feedback regarding nickname integration. We have completely overhauled how the plugin retrieves player names to ensure 100% compatibility with Essentials, alongside major internal stability improvements to eliminate hidden background errors.
### 🐛 Critical Bug Fixes
- ✅ Fixed: Essentials Nicknames Not Showing in Death Messages**
- Addressing user feedback: *"Seeking help with CustomDeathMessage plugin. The only feature I want is to replace the normal username with the essentials nickname of all players (victim and killer) in all places. Everything I have tried config wise either doesn't work and uses default. Or uses usernames and not nicknames."*
- What was wrong:** The plugin was relying solely on Minecraft's base API to get names, which only returns raw usernames (e.g.,
Steve). It wasn't actually "talking" to Essentials to fetch the custom nicknames (e.g.,[Admin] Steve). - What we did:** We built a dedicated, safe integration system (
EssentialsHook) directly into the plugin's core. Now, whenever a death occurs, the plugin securely checks Essentials first. This applies to: - The
{victim}placeholder. - The
{killer_name}placeholder. - The
{killer_displayname}placeholder. - Killers shooting from a distance (e.g., bows, crossbows).
- Respawn messages (
{player}).
- ✅ Fixed: "Uses Default" Fallback Loop**
messages.yml text. The new hook prevents this fallback loop, ensuring your custom messages always parse correctly.### 🌟 New Features & Placeholder Updates
- ✅ Added: "Raw Username" Placeholders**
{victim_username}→ Shows the raw Minecraft name (e.g.,Notch).{killer_username}→ Shows the killer's raw Minecraft name.
### 🛠️ Significant Refinements & Improvements
- ✅ Improved: Core Engine Stability & Java 8 Compatibility**
- ✅ Improved: Sound & Biome Detection Accuracy**
{biome} will now format perfectly in all supported Minecraft versions without throwing hidden warnings in your console.- ✅ Improved: Safe Pl
## 📜 CHANGELOG - CustomDeathMessages v1.1
> **⚠️ A Sincere Apology**
> We sincerely apologize for any instability or missing features in v1.0. This major update introduces a complete architectural redesign to enhance reliability, maintainability, and future extensibility. Thank you for your patience and invaluable feedback.
### 🗑️ Removed Features
- ❌ Removed: In-Game Configuration Editor (
/cdm editor)**
config.yml and messages.yml files.### 🌟 Major New Features
- ✅ Added: Advanced Broadcast System**
GLOBAL: All online players on the serverWORLD: All players in the same worldRADIUS: Players within a configurable distanceVICTIM_ONLY: Only the dying player
config.yml.- ✅ Added: Powerful
/cdm broadcastCommand Suite**
/cdm broadcast sound <mode> [radius] [sound]/cdm broadcast particle <mode> [radius] [particle]/cdm broadcast message <mode> <message>/cdm broadcast test– Simulates all broadcast modes/cdm broadcast global <type>– Send an effect to all players instantly.
- ✅ Added: Full Support for Minecraft 1.21.11**
### 🐛 Critical Bug Fixes
- ✅ Fixed: Inaccurate Killer & Source Identification**
{killer_name} (the responsible entity) and {killer_source} (the direct damage source, like an arrow or TNT) has been completely rewritten. It now correctly handles:- Projectiles (arrows, fireballs) from players, mobs, and dispensers.
- Direct entity attacks (players, zombies, creepers).
- Edge cases where the default game API returns incomplete data.
- ✅ Fixed: Server Startup Crash on Invalid Configuration**
- ✅ Fixed: Incorrect Placeholder Values**
{distance}, {biome}, and {victim_effects} now display accurate, properly formatted values (e.g., "nether_wastes" is now shown as "Nether Wastes").### 🛠️ Significan
...
> **⚠️ A Sincere Apology**
> I deeply apologize for the extended 4-week gap without updates and for not addressing these critical issues sooner. Thank you for your patience and continued support.
### 🐛 Critical Bug Fixes
- ✅ Fixed: Broken Killer Tracking & Generic Messages**
{killer_name}) and damage source ({killer_source}), resulting in generic "Unknown" messages. The DamageTracker and message formatter have been overhauled to accurately track and display killer information in all scenarios.- ✅ Fixed: In-Game Editor Inventory (80% Non-Functional)**
/cdm editor inventory was largely unresponsive, with most slots failing to register clicks or open sub-menus. This has been resolved; the editor is now stable and functional for basic navigation and message editing.### ℹ️ Important Notes
- 🛠️ Editor Status: Early Access (≈30% Complete)**
The plugin continues to evolve! Version 0.0.9 introduces a **comprehensive command restructuring** that unifies all functionality under a single command interface while simplifying permissions and improving the overall user experience. This release focuses on **consistency, usability, and maintainability**, making the plugin more intuitive for administrators and reducing complexity for end-users.
> **⚠️ UPDATE INSTRUCTIONS**
> No special migration steps are required for this update. However, please note:
> 1. The previous separate commands (
/cdmreload, /cdmconfig, etc.) will no longer function as standalone commands> 2. All functionality is now accessed through the unified
/cdm command> 3. Your existing configuration files will work without modification
> 4. Permissions have been simplified - if you were using the old permission system, no changes are needed
> 5. **The messages.yml file has been reorganized and translated from Spanish to English** - If you want to use the updated structure, you should delete your existing messages.yml file and let the plugin regenerate it with the new format. If you prefer to keep your current configuration, no action is needed as the plugin will maintain compatibility with your existing file.
#### ✨ New Features
- Added: Unified Command System**
/cdm command structure:/cdm test- Test death messages (replaces/cdm test)/cdm editor- Open configuration editor (replaces/cdm editor)/cdm help- Access help system (replaces/cdmhelp)/cdm config validate- Validate configuration (replaces/cdmconfig)/cdm reload- Reload configuration (replaces/cdmreload)- This simplifies command management and provides a consistent interface
- Added: Base Permission System**
cdm.use has been introduced:- Grants access to the main
/cdmcommand and its subcommands - Default: true (all players can use the command)
- Other permissions (
cdm.reload,cdm.editor, etc.) now function as sub-permissions within the unified system
- Added: Enhanced Command Tab Completion**
- Shows only relevant subcommands based on user permissions
- Provides contextual suggestions as you type
- Improves discoverability of available commands and parameters
- Added: Streamlined Help System**
- Now provides clear guidance on the unified command interface
- Includes examples of the new command syntax
- Maintains all the interactive features from previous versions
- Added: Reorganized & Translated Messages Configuration**
- All sec
The evolution continues! Version 0.0.8 builds upon the solid foundation of v0.0.7 with two essential new tools: **a built-in in-game configuration editor** and **automatic update notifications**. This release focuses on **improved administrator experience, transparency, and accessibility**, ensuring your custom death message configuration is more manageable than ever.
> **⚠️ UPDATE INSTRUCTIONS**
> To fully leverage the new features:
> 1. **Back up** your current
messages.yml file> 2. **Delete** the
messages.yml file from your server's plugins/CustomDeathMessages/ folder> 3. Restart or reload the server. The plugin will generate new configuration files with all new options
> 4. Manually transfer your custom messages from your backup to the new
messages.yml#### ✨ New Features
- Added: In-Game Configuration Editor (
/cdm editor)**
- Intuitive menu navigation with categories for groups, causes, and settings
- Real-time message preview with placeholder substitution
- Validation of placeholders during editing
- Confirmation before saving changes
- Supports editing conditional messages and group-specific messages (default, vip, admin)
- New permission node
cdm.editorfor access control
- Added: Update Notification System**
- Checks Modrinth for updates on server startup
- Notifies players with
cdm.adminpermission or OP when they join - Configurable notification messages in
messages.yml - Direct link to the plugin page for easy updating
- Added: New
/cdm editorCommand**
cdm.editor permission.- Added: Support for Minecraft 1.21.9 and 1.21.10**
#### 🐛 Bug Fixes
- Fixed: Improved Validation System**
- Fixed: Editor Compatibility**
#### 🛠️ Improvements & Optimizations
- Improved: Administrator Experience**
- Improved: Help System**
...
### 📜 CHANGELOG - CustomDeathMessages v0.0.7
The evolution never stops! Version 0.0.7 takes the solid foundation of v0.0.6 and elevates it with an **essential tool for administrators: a built-in configuration validator**. This release focuses on **error prevention, ease of use, and stability**, ensuring your experience with custom death messages is flawless.
> **⚠️ IMPORTANT UPGRADE NOTE**
> To fully leverage the new features and ensure compatibility:
> 1. **Make a backup** of your current
config.yml and messages.yml files.> 2. **Delete** the
config.yml and messages.yml files from your server's plugins/CustomDeathMessages/ folder.> 3. Restart or reload the server. The plugin will automatically generate new, up-to-date configuration files with all new options, examples, and system messages.
> 4. You can then manually re-add your custom settings and messages from your backup into the new files.
#### ✨ New Features
- Added: Integrated Configuration Validator (
/cdm config validate)**
config.yml and messages.yml files** before reloading. It scans for:- Invalid sounds and particles (global, per-group, and epic).
- Syntax errors in conditions (unknown operators, malformed placeholders).
- Generates a detailed report in the chat with success (✅), error (❌), and warning (⚠️) messages, along with a summary of the current configuration.
- Added: New System Messages for the Validator**
messages.yml under system-messages with translatable messages for the validator, such as config-validator-sound-not-found, config-validator-condition-syntax-warning, and config-validator-success-all, enabling a fully localizable user experience.- Added: New
/cdmconfigCommand**
/cdm config validate to start the validation process. Uses the cdm.reload permission.#### 🐛 Bug Fixes
- Fixed: Enhanced Atomic Reload**
/cdmreload command has been improved to be even more robust. It now **explicitly validates messages.yml before attempting to load config.yml**. If messages.yml has a critical syntax error (e.g., malformed YAML), the reload process stops immediately, notifies the user, and prints the full stack trace to the console, preventing any unstable intermediate state.- Fixed: Error Handling in Reload**
/cdmreload to capture and report unexpected failures more clearly, ensuring the administrator always receives feedback, even in edge cases.#### 🛠️ Improvements & Optimizations
- Improved: Administrator Experience**
### 📜 CHANGELOG - CustomDeathMessages v0.0.6
The evolution continues! Version 0.0.6 refines the groundbreaking features of v0.0.5 and introduces powerful new capabilities for unparalleled customization, accuracy, and user experience. This update is all about precision, control, and polish.
> **⚠️ IMPORTANT UPGRADE NOTE**
> To ensure you get all the new configuration options and message placeholders, **it is highly recommended that you**:
> 1. **Make a backup** of your existing
config.yml and messages.yml files.> 2. **Delete** the old
config.yml and messages.yml files from your server's plugins/CustomDeathMessages/ folder.> 3. Restart or reload the server. The plugin will automatically generate fresh, up-to-date configuration files with all the new settings and examples.
> 4. You can then manually re-add your custom messages and settings from your backup into the new files.
#### ✨ New Features
- Added: Advanced Killer Attribution System**
{killer_name}) and the **Direct Damage Source** ({killer_source}). For example, if a skeleton shoots you, {killer_name} will be "Skeleton" and {killer_source} will be "Arrow". This allows for incredibly detailed and context-aware messages.- Added: Sophisticated Conditional Logic**
AND and OR operators, plus new comparison operators like equals, startsWith, endsWith, >, <, >=, and <=. You can now create messages for scenarios like: {distance} > 10 AND {victim_effects} contains 'Poison'.- Added: New Placeholder:
{biome}**
{biome} placeholder (e.g., "Plains", "Nether Wastes", "Deep Dark") allows you to create messages like "consumed by the eternal flames of the Nether".- Added: Permission-Based Help System**
/cdmhelp) different user groups can access. Configure this via the new help-permissions section in config.yml (e.g., vip: [1, 2], default: [1]).- Added: Dynamic Help Page Generation**
/cdmhelp command now generates its pages dynamically from the messages.yml file, making it easier to maintain and translate. The system automatically calculates the total number of pages.- Added: Atomic Configuration Reload**
/cdmreload command now uses an atomic reload system. If any part of the new configuration (config or messages) fails to load, the plugin **reverts to the previous, working state**, preventing server crashes due to bad configs.- Added: Enhanced Test Command**
/cdm test command now accepts a fourth optional argument to manually specify the {killer_source} (e.g., /cdm test ENTITY_ATTACK Skeleton Arrow), allowing for comprehensive testing of the new killer attribution system.#### 🐛 Bug Fixes
- Fixed: Proj
### 📜 CHANGELOG - CustomDeathMessages v0.0.5
Prepare for the ultimate death experience! Version 0.0.5 is a massive overhaul that transforms the plugin with epic new mechanics, economic integration, and a complete help system.
#### ✨ New Features
- Added: Epic Death System**
epic-death-chance in config.yml) for a death to be **EPIC**! When triggered, it displays a special message, plays a powerful sound, spawns spectacular particles, shows a full-screen title, and... strikes a lightning bolt at the death location!- Added: In-Game Help Command (
/cdmhelp)**
/cdmhelp [page] to access a comprehensive, multi-page guide directly in-game, covering commands, permissions (including cdm.admin), placeholders, configuration options, and support.- Added: Vault Economy Integration**
cost-per-death-message in config.yml) to display death messages. Specific permission groups (like "admin") can be exempted from this cost via the exempt-groups-from-cost list.- Added: Legacy Color Support**
legacy-color-support option in config.yml will automatically strip modern hex color codes (<#rrggbb>) from messages, preventing them from appearing as plain text.- Added: Conditional Death Messages**
messages.yml using the condition and message syntax.- Added: New Configuration Options**
config.yml file has been significantly expanded with new, powerful settings:epic-death-chance: Probability (0.0 to 1.0) of an epic death occurring.cost-per-death-message: The amount to charge players (requires Vault).exempt-groups-from-cost: A list of permission groups (e.g.,- "admin") that do not pay the death message cost.legacy-color-support: Enables compatibility mode for older Minecraft versions.
#### 🐛 Bug Fixes
- Fixed: Inaccurate or "Unknown" Killer Names**
{killer}), even in complex scenarios like falling to your death after being pushed by a mob.- Fixed: Modern Sound Name Support**
entity.player.death instead of ENTITY_PLAYER_DEATH), ensuring perfect compatibility.- Fixed: Update Checker Targeting Wrong Plugin**
...
### 🐛 Bug Fixes
- Chat Message Color Codes Fixed:**
/cdmreload, /cdm test) now correctly process & color codes.# 📜 CustomDeathMessages - Changelog v0.0.2
#### 🎉 **Minor Update with Major Improvements!**
This version refines the foundation of v0.0.1, adding new community-requested features and improving stability and developer experience.
#### ✅ **New Features**
- Killer Support in
/cdm test!**
Example:
/cdm test ENTITY_ATTACK Notch This allows you to accurately test placeholders like
{killer}, {killer_displayname}, and {distance}.- New Placeholder:
{killer_displayname}**
- New Placeholder:
{distance}**
- Random Message Cooldown System**
- Improved Killer Detection**
- Centralized System Messages**
messages.yml under the system-messages section. This allows administrators to fully translate the plugin without modifying the code.- PlaceholderAPI Compatibility in
/cdm test**
- Registered TabCompleter**
/cdm command now has a functional TabCompleter that suggests "test", damage causes, and names of online players, greatly improving usability.#### 🐛 **Bug Fixes**
- Fixed an error in
MessagesManager.javawhere the character encoding when loading the default file was not specified, which could cause issues with special characters. It now usesStandardCharsets.UTF_8.
Thank you for using CustomDeathMessages! This update makes the plugin more powerful, flexible, and easier to use than ever before.