Class KonquestCampDestroyPostEvent

java.lang.Object
org.bukkit.event.Event

public class KonquestCampDestroyPostEvent extends KonquestCampEvent
Called after a player breaks a camp's bed to destroy it.

This event is called when any player breaks the camp's bed, even the camp owner. The camp referenced by this event no longer exists, so the getCamp() method will return null. This event will not be invoked when KonquestCampDestroyEvent is cancelled.

  • Constructor Details

    • KonquestCampDestroyPostEvent

      public KonquestCampDestroyPostEvent(KonquestAPI konquest, KonquestOfflinePlayer owner, KonquestPlayer player, org.bukkit.Location location)
      Default constructor
      Parameters:
      konquest - The API instance
      owner - The camp owner
      player - The player
      location - The location
  • Method Details

    • getOwner

      @Nullable public KonquestOfflinePlayer getOwner()
      Gets the owner of the destroyed camp.
      Returns:
      The camp owner, or null if no owner was found
    • getPlayer

      public KonquestPlayer getPlayer()
      Gets the player that destroyed the camp's bed.
      Returns:
      The player
    • getLocation

      public org.bukkit.Location getLocation()
      Gets the location of camp's bed.
      Returns:
      The location
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Get the handler list
      Returns:
      handlers
    • getHandlers

      @Nonnull public org.bukkit.event.HandlerList getHandlers()
      Get the handler list
      Specified by:
      getHandlers in class KonquestEvent
      Returns:
      handlers