Package konquest.api.event.player
Class KonquestPlayerCampEvent
java.lang.Object
org.bukkit.event.Event
konquest.api.event.KonquestEvent
konquest.api.event.player.KonquestPlayerEvent
konquest.api.event.player.KonquestPlayerCampEvent
- 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.
- Author:
- Rumsfield
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionKonquestPlayerCampEvent(KonquestAPI konquest, KonquestPlayer player, org.bukkit.Location location) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.LocationGets the location of the new camp.booleanvoidsetCancelled(boolean val) Methods inherited from class konquest.api.event.player.KonquestPlayerEvent
getPlayerMethods inherited from class konquest.api.event.KonquestEvent
getHandlerList, getHandlers, getKonquestMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
KonquestPlayerCampEvent
public KonquestPlayerCampEvent(KonquestAPI konquest, KonquestPlayer player, org.bukkit.Location location) Default constructor- Parameters:
konquest- The API instanceplayer- The playerlocation- 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:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean val) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-