🩸 DeathPulse v2.1.1
Fixed compatibility issue with Minecraft versions below 1.21.10.
Config Version Detection System
Added a new section named config-version in config.yml.
This section allows DeathPulse to detect the configuration version currently in use.
If a server is running the latest plugin version but still uses an older configuration file, DeathPulse will automatically append any missing sections or options to ensure compatibility with newer updates.
Cause Exclusion Modifier (::EXCLUDE)
Each death type configuration (Ignore, IgnoreDay, Increase, IncreaseDay, Decrease, DecreaseDay) now supports an additional modifier ::EXCLUDE.
This modifier can be used to exclude certain death causes from a given death type category.
Example:
increase:
cause:
- FALL::EXCLUDE
In this case, FALL deaths will be excluded from the “Increase” type handling.
Permissions Handling Simplified Internal permission checks have been refactored for cleaner and more efficient logic. This change does not affect existing permission node names and remains fully backward-compatible.
Minecraft API Update DeathPulse now officially targets Minecraft 1.21.10 Spigot API. (No functional code changes were required, but this version aligns the build target with the latest server API for improved consistency and future compatibility.)
config-version field upon startup if missing.::EXCLUDE modifier provides more granular control over which death causes are handled in each category, offering improved flexibility for custom setups.New Commands
/dp setConfig <key> <value> → change config values directly via command./dp setMaxHealth <player> <amount> → set a player’s maximum health./dp viewDeathData → view death data of the player who runs the command./dp viewDebtData → view debt (HP debt) data of the player who runs the command./dp removeDebtData <player|allPlayer> → remove debt data of specific or all players./dp transferHealth <player> <amount> → transfer HP from one player to another./dp withdrawHealth <player> <amount> → withdraw HP into a Health Item.New Permissions for new commands (dp.setConfig, dp.setMaxHealth, dp.viewDeathData, dp.viewDebtData, dp.removeDebtData, dp.transferHealth, dp.withdrawHealth).
Health Item System
Debt System → when HP goes below 0/minimum, the difference becomes debt that must be repaid with future health gains.
Season System → reset death data each season (based on real-world days or Minecraft days).
Priority Death System → set priority for handling death types (IGNORE, INCREASE, DECREASE).
After Ban Health → configure the HP a player has after returning from a ban.
New Event Listener: HealthItemListener for handling health item logic.
Increase/Decrease/Ignore Systems
TYPE::AMOUNT).must_difference option to prevent repeating the same death type for HP gain/loss.Configuration Enhancements
firstTimeSetup → records when the plugin was first installed.checkDayPeriod → adjustable day check interval (lower is more accurate, higher is less laggy).worldDaySettings → define ticks per day per world.permissionsAllPlayer → allow all players to run specific commands without explicit permissions.Notifications & Logs
debtPaidOff, debtReduced, debtAdded)./dp reload now reloads config more reliably without requiring a server restart.config.yml before upgrading.Sorry for the infrequent updates, as I'm still juggling work and college assignments, so I don't have much time, haha.
New Features:
Special Day Boosts
special_day settings! Now you can configure specific days where players receive a health boost upon death. Perfect for special events or just to keep things interesting.Global Death Ignoring and Decreasing
all for ignored and decrease death types. This allows you to ignore or decrease health for all types of deaths, bringing more flexibility to your server management.Ban Integration in MatchHealthCommand
MatchHealthCommand now includes ban functionality. Match health and manage bans seamlessly with this robust addition.Support 1.21.4 New Release
Fix:
newDecreasePerDeath in the Command SetDecreaseCommand.Colorized Messages:
Enhanced the readability and aesthetics of in-game messages and server logs by adding color to the sendMessage commands.
Config Validation:
Introduced a new validateConfig method in ConfigManager to ensure your configuration is correct and prevent potential issues.

Simple Plugin Increase or Decrease Health Player When They Die