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

Stualyttle released LyttleNametag version 1.0.1 on June 23, 2025

v1.0.1

This pull request introduces significant updates to workflows, plugin versioning, and the NametagHandler class. The changes enhance automation for publishing across multiple platforms, improve the plugin's version management, and refactor the nametag system to support multi-line displays and additional functionality.

Workflow Updates

  • .github/workflows/alpha.yml, .github/workflows/beta.yml, .github/workflows/main.yml: Updated workflows to include steps for publishing artifacts to GitHub Packages, Hangar, and Modrinth. Added comments for clarity and improved environment variable handling.

Plugin Versioning

  • Incremented the plugin version from 1.0.0 to 1.0.1.

Nametag System Refactor

  • NametagHandler.java:
    • Introduced multi-line nametag support by splitting text into lines and creating individual TextDisplay entities for each line. Added constants for line spacing and base offset.
    • Added a PlayerToggleSneakEvent handler to hide/show nametags when players toggle sneaking.
    • Refactored methods for removing, cleaning up, and reloading nametags to handle multiple TextDisplay entities per player.

Dependency Update

  • Added LegacyComponentSerializer import to handle serialization of components into legacy text format for multi-line support.

Documentation Update

  • Removed the "Lyttle Certified" section to streamline the documentation.

Information

Published onJune 23, 2025
Downloads1

Platforms

Paper Paper (1.21.5)