Events

Events

View as Markdown ·

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.

JAVA
@EventHandler
public void onHologramClick(HologramClickEvent event) {
    if (event.getIdentifier().equals("arena_join") && inMatch(event.getPlayer())) {
        event.setCancelled(true);
    }
}
My Cart
Spider

Your cart is empty

Looks like the spiders padded through here. Pick a plugin and it will show up here. Continue shopping