Class KonquestCampDestroyEvent

java.lang.Object
org.bukkit.event.Event
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class KonquestCampDestroyEvent extends KonquestCampEvent implements org.bukkit.event.Cancellable
Called before 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. Canceling this event will prevent the bed from breaking, and the camp will not be destroyed.

  • Constructor Details

    • KonquestCampDestroyEvent

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

    • getPlayer

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

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

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean val)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable