Class PlayerEntersIntoDistrictEvent

java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.player.PlayerEntersIntoDistrictEvent

public class PlayerEntersIntoDistrictEvent extends org.bukkit.event.Event
Thrown when a player crosses into Town border.
  • Constructor Details

    • PlayerEntersIntoDistrictEvent

      public PlayerEntersIntoDistrictEvent(org.bukkit.entity.Player player, WorldCoord to, WorldCoord from, District enteredDistrict, org.bukkit.event.player.PlayerMoveEvent pme)
  • Method Details

    • getHandlers

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

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

      public org.bukkit.entity.Player getPlayer()
    • getResident

      @Nullable public @Nullable Resident getResident()
    • getPlayerMoveEvent

      public org.bukkit.event.player.PlayerMoveEvent getPlayerMoveEvent()
    • getEnteredDistrict

      public District getEnteredDistrict()
    • getFrom

      public WorldCoord getFrom()
    • getTo

      public WorldCoord getTo()