Code (Text):
Toggle Command
*/chathologram* or */chathologram toggle* - Turn holograms on/off for yourself
Aliases: /ch and /hologram Toggle state persists until server restart
Automatically cleans up any active holograms when disabled
Shows clear feedback messages (green for enabled, red for disabled)
Code (Text):
Follow Player Movement
Holograms now stick above the player as they move around
Updates every tick for smooth following
Configurable via follow-player: true/false in config
Automatically cleans up follow tasks when holograms expire
No performance issues - tasks are properly cancelled
Technical Details
What happens when you toggle off;
Your current hologram is immediately removed
The follow task is cancelled
No new holograms spawn when you chat
Toggle state is remembered until server restart
Follow Movement;
Updates hologram position every tick (20 times per second)
Automatically stops when hologram expires
Cleans up properly when player logs out
Uses Bukkit-Task for efficient scheduling
Performance Optimizations;
All tasks are properly cancelled to prevent memory leaks
PlayerQuitEvent handler cleans up everything
Follow tasks only run when follow-player is enabled
Set follow-player: false in the config if you want stationary holograms
(like your original version) instead of following ones!