Class KonquestPlayerCampEvent

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

public class KonquestPlayerCampEvent extends KonquestPlayerEvent implements org.bukkit.event.Cancellable
Called before a barbarian player places a bed in the wild to create their camp.

Canceling this event will prevent the camp creation and bed block placement.

  • Constructor Details

    • KonquestPlayerCampEvent

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

    • getLocation

      public org.bukkit.Location getLocation()
      Gets the location of the new camp. This is the where the bed is being placed.
      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