Class ResidentJailEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.resident.ResidentJailEvent
public class ResidentJailEvent
extends org.bukkit.event.Event
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionResidentJailEvent
(Resident resident, JailReason reason, org.bukkit.entity.Player sender) -
Method Summary
Modifier and TypeMethodDescriptiondouble
static org.bukkit.event.HandlerList
@NotNull org.bukkit.event.HandlerList
getJail()
int
int
org.bukkit.Location
@Nullable org.bukkit.entity.Player
Returns the Player that jailed the resident via jail command, or via killing them as an outlaw or prisoner of war.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
ResidentJailEvent
-
-
Method Details
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getResident
-
getJail
-
getJailCell
public int getJailCell() -
getJailHours
public int getJailHours() -
getJailTown
-
getJailTownName
-
getJailSpawnLocation
public org.bukkit.Location getJailSpawnLocation() -
getBailAmount
public double getBailAmount() -
getJailReason
-
getPlayerThatSentResidentToJail
@Nullable public @Nullable org.bukkit.entity.Player getPlayerThatSentResidentToJail()Returns the Player that jailed the resident via jail command, or via killing them as an outlaw or prisoner of war.- Returns:
- player who jailed the resident, or null if they were jailed by an admin.
-