Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
v1.2.2
This pull request introduces several improvements and fixes to the nametag handling system, focusing on more robust and dynamic updates, better configuration management, and improved event handling. The main changes include making nametag updates periodic and event-driven, improving configuration migration and management, and refactoring the code for better maintainability and flexibility.
Nametag Update Improvements:
- Added periodic nametag updates using a configurable interval (
interval
), with nametag text now updating dynamically based on player state and location. A newupdateNametagTexts
method ensures all nametags stay current. [1] [2] [3] - Nametag text and position are now recalculated based on a height offset above the player's head, ensuring better visual alignment. [1] [2]
Event Handling Enhancements:
- Added event listeners for player world change, teleport, death, respawn, and game mode change to trigger a delayed nametag reload, ensuring nametags stay accurate through all relevant player events.
Configuration and Migration:
- Added a new
interval
configuration option to both default and main config files, allowing server owners to control how often nametags are updated. Updated theconfig_version
to 2 and improved the configuration migration logic to handle new entries and upgrades. [1] [2] [3] [4]
API and Code Refactoring:
- Refactored
NametagHandler
to expose areload()
method (replacingreloadNametags()
in command handling), and madeNametagEntity
mutable to allow dynamic text updates. [1] [2] [3] [4]
Versioning:
- Bumped the plugin version from 1.2.1 to 1.2.2 in
gradle.properties
to reflect these changes.
Information
Published on | August 17, 2025 |
---|---|
Downloads | 0 |
Platforms
Paper (1.21.8)