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.0

Stualyttle released LyttleNametag version 1.2.0 on July 28, 2025

v1.2.0

This pull request introduces significant enhancements to the Lyttle Nametag plugin, including a migration to a new nametag implementation using PacketEvents, configuration updates, and improved handling of player nametags. The changes aim to optimize performance, simplify the codebase, and improve maintainability.

Nametag Implementation Overhaul:

  • Replaced the TextDisplay-based nametag system with a PacketEvents-based implementation, introducing the NametagEntity class for managing nametags. This change improves performance and compatibility.

Configuration Updates:

  • Migrated the nametag configuration key from messages.yml to config.yml for better separation of concerns.
  • Updated the config_version to 1 and added comments to clarify configuration usage.

Codebase Simplifications:

  • Removed legacy methods and logic for handling TextDisplay entities, including the onPlayerToggleSneak event handler and associated transformations.
  • Replaced HashMap with ConcurrentHashMap for thread-safe management of player nametags.

Gradle and Versioning:

  • Updated pluginVersion to 1.2.0 and changed paperVersion to support version ranges (1.21.x).

Configuration Migration:

  • Enhanced migrateConfig() to handle the migration of the nametag key from messages.yml to config.yml.

Information

Published onJuly 28, 2025
Downloads0

Platforms

Paper Paper (1.21.7)