Api Events
HuskHomes provides a number of API events your plugin can listen to when certain actions are performed. Most of these events are cancellable, letting you stop them from executing if you wish.
List of API events
Bukkit Event class | Since | Cancellable | Description |
---|---|---|---|
HomeCreateEvent | 4.0 | β | Called when a player sets a home |
HomeListEvent | 3.0 | β | Called when a player requests to view a list of homes / public homes |
HomeEditEvent | 4.0 | β | Called when a player edits a home (privacy, relocate, description, name) |
HomeDeleteEvent | 3.0 | β | Called when a player deletes a homeβ |
DeleteAllHomesEvent | 3.2.1 | β | Called when a player uses /delhome all to delete all their homes |
WarpCreateEvent | 4.0 | β | Called when a player sets a warp |
WarpListEvent | 3.0 | β | Called when a player requests to view a list of warps |
WarpEditEvent | 4.0 | β | Called when a player edits a warp (relocate, description, name) |
WarpDeleteEvent | 3.0 | β | Called when a player deletes a warpβ |
DeleteAllWarpsEvent | 3.2.1 | β | Called when a player uses /delwarp all to delete all warps |
TeleportWarmupEvent | 3.0 | β | Called when a player starts a teleport warmup countdown |
TeleportEvent | 3.0 | β | Called when a player is teleportedβ‘ |
β If the player uses /delhome all
or /delwarp all
to delete all their homes or all the warps, a single DeleteAllHomesEvent
or DeleteAllWarpsEvent
is fired instead.
β‘ Called on the server the player is teleported from; not neccessarily where the executor of the teleport is.