Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
Avatar for Lyttle-Development

Better Nametags Plugin - Supports Newlines!

Report LyttleNametag?

Release
1.2.2

Stualyttle released LyttleNametag version 1.2.2 on August 17, 2025

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 new updateNametagTexts 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 the config_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 a reload() method (replacing reloadNametags() in command handling), and made NametagEntity 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 onAugust 17, 2025
Downloads0

Platforms

Paper Paper (1.21.8)