Oops... looks like the spiders padded through here
Add products to your cart and remove them from here Lets buyOn this page, you will find every event the Phoenix Holograms API fires.
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);
}
}
Oops... looks like the spiders padded through here
Add products to your cart and remove them from here Lets buy