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:
Code (YAML):
increase:
cause: - FALL::EXCLUDE
In this case, FALL deaths will be excluded from the “Increase” type handling.
Changed
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.)[/COLOR][/COLOR]
Notes
Existing configurations will automatically be updated with the new `config-version` field upon startup if missing.
The `::EXCLUDE` modifier provides more granular control over which death causes are handled in each category, offering improved flexibility for custom setups.
This update remains fully backward-compatible with all prior 2.x configurations.
/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
Fully customizable material, name, lore, and HP per item.
Option to drop health items when a player reaches max HP on death.
Block crafting of specific items using health items.
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.
⚡ Improved
Increase/Decrease/Ignore Systems
Support for custom HP amounts per death type (TYPE::AMOUNT).
Ability to deactivate other effects during certain days.
Flexible 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
Expanded messages for the debt system (debtPaidOff, debtReduced, debtAdded).
Warning messages for special days (Ignored Day, Increase Day, Decrease Day, Season Change).
Improved ban, max HP, and min HP messages.
More detailed server logs.
Fixed
/dp reload now reloads config more reliably without requiring a server restart.
Help command updated to reflect new commands and changes.
⚠ Upgrade Notes
Config.yml has major changes. Old configs may not be fully compatible. → It’s strongly recommended to backup your existing config.yml before upgrading.
New systems (Health Item, Debt, Season, Priority) introduce new config sections.
If upgrading from an older version, you may need to regenerate the config and reapply your custom settings.
Version 1.21 - 1.21.7
Sorry for the infrequent updates, as I'm still juggling work and college assignments, so I don't have much time, haha.
Introducing 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
Added a new option: 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
You asked, we delivered! The MatchHealthCommand now includes ban functionality. Match health and manage bans seamlessly with this robust addition.
Support 1.21.4 New Release
Fix:
Addressed issues with newDecreasePerDeath in the Command SetDecreaseCommand.