Class ResidentJailEvent

java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.resident.ResidentJailEvent

public class ResidentJailEvent extends org.bukkit.event.Event
  • Constructor Details

    • ResidentJailEvent

      public ResidentJailEvent(Resident resident, JailReason reason, org.bukkit.entity.Player sender)
  • Method Details

    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
    • getResident

      public Resident getResident()
    • getJail

      public Jail getJail()
    • getJailCell

      public int getJailCell()
    • getJailHours

      public int getJailHours()
    • getJailTown

      public Town getJailTown()
    • getJailTownName

      public String getJailTownName()
    • getJailSpawnLocation

      public org.bukkit.Location getJailSpawnLocation()
    • getBailAmount

      public double getBailAmount()
    • getJailReason

      public JailReason 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.