π»Hologram
The hologram module allows you to create holograms using Display entities. Everything works through packets, so you do not need to install additional plugins to make this module work.
With Display entities, you can create holograms for text, items, and blocks. For more information on Display Entities, visit: Minecraft Display Entities.
Since packets are used, each placeholder is unique to each player. You can use PlaceholderAPI to display data that only the player can see, such as their current balance.
To configure the holograms, you have all the in-game commands at your disposal, simplifying the processβno need to use configuration files!




Configuration
Config.yml
Baltop.yml
This configuration is an example of what can be done. Holograms can be configured directly in-game with commands. You can use the file from to configure your holograms.
Events
To update your holograms, you can use the event system. This system allows you to avoid using tasks for updating placeholders. Traditional plugins often use tasks unnecessarily, which updates data continuously for all players. zEssentials aims to be as optimized as possible, making the event system the most efficient option. When a player performs an action on your server, an event is triggered (whether by Spigot, Paper, Folia, or even zEssentials). The configuration listens for the event you specified for the line and updates only that line.
For example, in the case of the baltop, two events are used. The first is the EconomyBaltopUpdateEvent, which is called when the baltop is updated. The second is the UserEconomyPostUpdateEvent, which is called when a player's economy is modified. Thus, the holograms will update for all players when the baltop is updated and for a specific player when their money is updated. Your event must be a player event (with some exceptions). You can find the list of events here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/package-summary.html
Last updated