Api Events

HuskHomes provides a number of API events your plugin can listen to when certain actions are performed. Some of these events are cancellable, letting you stop them from executing if you wish.

List of API events

Bukkit Event classCancellableDescription
HomeSaveEventβœ…Called when a player creates, renames, changes the location, updates the privacy or updates the description of a home
HomeDeleteEventβœ…Called when a player deletes a home†
HomeListEventβœ…Called when a player requests to view a list of their homes, or a list of public homes
WarpSaveEventβœ…Called when a player creates, renames, changes the location or updates the description of a home
WarpDeleteEventβœ…Called when a player deletes a warp†
WarpListEventβœ…Called when a player requests to view a list of warps
TeleportWarmupEventβœ…Called when a player starts a teleport warmup countdown during which they must stand still
TeleportEvent❌Called when a player is teleported by HuskHomes
DeleteAllHomesEventβœ…Called when a player uses /delhome all to delete all of their homes
DeleteAllWarpsEventβœ…Called when a player uses /delwarp all to delete all warps

† 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.