Class TownUnclaimEvent

java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.town.TownUnclaimEvent

public class TownUnclaimEvent extends org.bukkit.event.Event
This event fires after a TownBlock has been unclaimed and stores the WorldCoord

If you need to cancel the unclaim process, please use TownPreUnclaimEvent.

  • Constructor Details

    • TownUnclaimEvent

      public TownUnclaimEvent(Town town, WorldCoord worldCoord, boolean isOverClaim)
  • 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()
    • isOverClaim

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

      @Nullable public @Nullable Town getTown()
      Returns:
      Town which is unclaiming land.
    • getWorldCoord

      public WorldCoord getWorldCoord()
      Gets the unclaimed WorldCoord.
      Returns:
      The WorldCoord unclaimed.