
LyttleNametag
Better Nametags Plugin - Supports Newlines!
Оцените первым
689
2
689
2
Список изменений
v1.2.2
This pull request introduces significant improvements to the nametag handling system, focusing on more efficient updates, better event responsiveness, and improved code maintainability. The main changes include separating nametag text updates from full reloads, introducing a periodic "hard reload," and adding event-driven reloads for better accuracy and performance.
Nametag update and reload improvements:
- Added a new
updateNametagTextsmethod to update only the text of nametags periodically, reducing the overhead of full reloads. This is now called on a timer instead ofreloadNametags, which is reserved for full entity reloads. [1] [2] - Introduced a separate
hardReloadTimerthat triggers a full reload of nametags every 60 seconds to ensure state consistency.
Event-driven reload enhancements:
- Implemented a
reloadTimeOutmethod and registered event handlers for player join, quit, death, respawn, world change, teleport, and game mode change, triggering a delayed full reload for accurate nametag updates after significant player events.
Code maintainability and flexibility:
- Made the
NametagEntityclass public and added asetTextmethod, allowing for dynamic updates to nametag text. [1] [2] - Cleaned up and simplified code by removing redundant comments and consolidating imports. [1] [2] [3] [4]
These changes should result in more responsive and efficient nametag updates, better handling of edge cases, and easier future maintenance.
Файлы
LyttleNametag-1.2.2.jar(38.38 KiB)
ОсновнойМетаданные
Канал релиза
Alpha
Номер версии
1.2.2-ALPHA.8
Загрузчики
Paper
Версии игры
1.21.8
Загрузок
13
Дата публикации
14.08.2025
