Promotion background
Halloween Season IS HERE!
10% off limited time offer!
limited time offer SAVE 10% NOW →
API API

Events

On this page, you will find every event the Phoenix Holograms API fires.

#Events

All of them are ordinary Bukkit events in com.phoenixplugins.phoenixholograms.api.events. Every event but HologramsLoadEvent carries the hologram's id with getIdentifier().

Event Fired when Also carries Cancellable
HologramClickEvent A player clicks a hologram, before any action runs getPlayer(), getPage() and getLine() counted from 0, isLeftClick() Yes
HologramCreateEvent A hologram is created No
HologramEditEvent A hologram changes getChange(), the name of what changed No
HologramDeleteEvent A hologram is deleted No
HologramsLoadEvent The plugin has loaded every hologram No

Cancelling HologramClickEvent stops the click: no action runs and the cooldown does not start.

@EventHandler
public void onHologramClick(HologramClickEvent event) {
    if (event.getIdentifier().equals("arena_join") && inMatch(event.getPlayer())) {
        event.setCancelled(true);
    }
}
Last updated about 2 hours ago
My Cart (0 items)

Oops... looks like the spiders padded through here

Add products to your cart and remove them from here Lets buy