Your cart is empty
Looks like the spiders padded through here. Pick a plugin and it will show up here. Continue shoppingAll of them are ordinary Bukkit events in com.phoenixplugins.phoenixnpcs.api.events. Every one except NpcsLoadEvent carries the NPC with getNpc().
| Event | Fired when | Also carries | Cancellable |
|---|---|---|---|
NpcInteractEvent |
A player clicks an NPC, after the cooldown check and before any action runs |
getPlayer(), getClick() (LEFT or RIGHT) |
Yes |
NpcCreateEvent |
An NPC is created or copied | No | |
NpcEditEvent |
A setting of an NPC changes |
getChange(), the name of what changed |
No |
NpcRemoveEvent |
An NPC is removed | No | |
NpcRenameEvent |
An NPC gets a new id | getPreviousIdentifier() |
No |
NpcProximityEvent |
A player walks into or out of the NPC's proximity radius |
getPlayer(), isEntered()
|
No |
NpcsLoadEvent |
Every NPC has been loaded, on startup and after /pnpc reload
|
No |
Cancelling NpcInteractEvent stops the click: no action runs, no animation plays and the click handler of a temporary NPC is not called.
@EventHandler
public void onNpcClick(NpcInteractEvent event) {
if (event.getNpc().getGroup().equals("event") && !eventRunning) {
event.setCancelled(true);
event.getPlayer().sendMessage("The event has not started yet.");
}
}
Your guide to the docs
Ask me anything about our plugins. I know these docs inside out, check the latest versions and changelogs, and can read your server logs.
Try asking
Your cart is empty
Looks like the spiders padded through here. Pick a plugin and it will show up here. Continue shopping