Class TownPreUnclaimEvent

java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.CancellableTownyEvent
com.palmergames.bukkit.towny.event.town.TownPreUnclaimEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class TownPreUnclaimEvent extends CancellableTownyEvent
  • Constructor Details

    • TownPreUnclaimEvent

      public TownPreUnclaimEvent(Town town, TownBlock townBlock)
      Event thrown prior to a TownBlock being unclaimed by a Town.

      This is cancellable but it is probably not a good idea to do so without testing.

      Parameters:
      town - The Town unclaiming the TownBlock.
      townBlock - The TownBlock that will be unclaimed.
  • Method Details

    • getTown

      @Nullable public @Nullable Town getTown()
      Returns:
      the Town.
    • getTownBlock

      public TownBlock getTownBlock()
      Returns:
      the soon-to-be unclaimed TownBlock.
    • getHandlerList

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

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