HPByLevel icon

HPByLevel -----

Adjust player HP by level ranges from config




New Features
  • Per-World HP Scaling
    • Added support for enabled-worlds in config.yml
    • HP scaling only applies in worlds explicitly listed from config
  • World Change Handling
    • Added PlayerChangedWorldEvent support
    • Players switching between enabled/disabled worlds will now have HP correctly updated or reset
  • Auto-Generate Missing World Config
    • If enabled-worlds is missing, it is automatically added on first run
Improvements
  • HP is now reset to vanilla (20 HP) when entering a world that is not listed in enabled-worlds
  • /hpbl info now also displays the configured enabled worlds
Bug Fixes
  • Fixed: HP not resetting when leaving an HP-enabled world
  • Fixed: Players keeping increased HP in disabled/neutral worlds
  • Fixed: Inconsistent HP behavior when teleporting across worlds
----------, Jun 1, 2025

What's New
  • XP Command Handling
    • Supports both /xp and /minecraft:xp
    • Ensures player max HP is updated properly even when level is changed by command
  • Player Reconnection Support
    • Automatically reapplies correct max HP when a player rejoins the server
    • No need to wait for level change — HP is now restored immediately on join
  • Death & Respawn Handling
    • Players now have their correct max HP restored after death
    • Works with all respawn scenarios, including /kill, void deaths, and combat
    • Uses safe delayed logic to ensure attribute is applied post-respawn
Performance Improvements
  • Centralized logic for applying health via a single method
  • Removed redundant health logic from all event handlers
  • Refactor Code That Reduce Performance Server
Bug Fixes
  • Fixed: HP not updating on reconnect
  • Fixed: HP resetting after player death
  • Fixed: /xp and other commands bypassing health updates
----------, May 31, 2025

Resource Information
Author:
----------
Total Downloads: 115
First Release: May 30, 2025
Last Update: Jun 1, 2025
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings