Class TownClaimEvent

java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.TownClaimEvent

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

    • TownClaimEvent

      public TownClaimEvent(TownBlock townBlock, org.bukkit.entity.Player player, boolean isOverClaim)
  • 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()
    • isOverClaim

      public boolean isOverClaim()
      Whether the claim has resulted from takeoverclaim.
      Returns:
      true if the claim resulted from /t takeoverclaim.
    • getTownBlock

      public TownBlock getTownBlock()
      Returns:
      the new TownBlock.
    • getResident

      public Resident getResident()
      Gets the resident claiming the townblock.
      Returns:
      The resident claiming.
    • getTown

      public Town getTown()
      Returns:
      the Town which claimed this TownBlock.