Class KonquestCampDestroyPostEvent
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.KonquestCampDestroyPostEvent
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionKonquestCampDestroyPostEvent
(KonquestAPI konquest, KonquestOfflinePlayer owner, KonquestPlayer player, org.bukkit.Location location) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
Get the handler listorg.bukkit.event.HandlerList
Get the handler listorg.bukkit.Location
Gets the location of camp's bed.getOwner()
Gets the owner of the destroyed camp.Gets the player that destroyed the camp's bed.Methods inherited from class com.github.rumsfield.konquest.api.event.camp.KonquestCampEvent
getCamp
Methods inherited from class com.github.rumsfield.konquest.api.event.KonquestEvent
getKonquest
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
KonquestCampDestroyPostEvent
public KonquestCampDestroyPostEvent(KonquestAPI konquest, KonquestOfflinePlayer owner, KonquestPlayer player, org.bukkit.Location location) Default constructor- Parameters:
konquest
- The API instanceowner
- The camp ownerplayer
- The playerlocation
- The location
-
-
Method Details
-
getOwner
Gets the owner of the destroyed camp.- Returns:
- The camp owner, or null if no owner was found
-
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 classKonquestEvent
- Returns:
- handlers
-