Class KonquestCampDestroyEvent
java.lang.Object
org.bukkit.event.Event
com.github.rumsfield.konquest.api.event.KonquestEvent
com.github.rumsfield.konquest.api.event.camp.KonquestCampEvent
com.github.rumsfield.konquest.api.event.camp.KonquestCampDestroyEvent
- 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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorsConstructorDescriptionKonquestCampDestroyEvent
(KonquestAPI konquest, KonquestCamp camp, KonquestPlayer player, org.bukkit.Location location) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.Location
Gets the location of camp's bed.Gets the player that is destroying the camp's bed.boolean
void
setCancelled
(boolean val) Methods inherited from class com.github.rumsfield.konquest.api.event.camp.KonquestCampEvent
getCamp
Methods inherited from class com.github.rumsfield.konquest.api.event.KonquestEvent
getHandlerList, getHandlers, getKonquest
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
KonquestCampDestroyEvent
public KonquestCampDestroyEvent(KonquestAPI konquest, KonquestCamp camp, KonquestPlayer player, org.bukkit.Location location) Default constructor- Parameters:
konquest
- The API instancecamp
- The campplayer
- The playerlocation
- The location
-
-
Method Details
-
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 interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean val) - Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-