Class NationRangeAllowTownEvent

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

public class NationRangeAllowTownEvent extends CancellableTownyEvent
An event fired before a town is deemed too far to be in the specified nation. May be fired pre-canceled due to Proximity rules. Plugins may use #setCancelled(false) to bypass proximity rules and forcefully allow the town to join, or stay if it already is a member.
  • Constructor Details

    • NationRangeAllowTownEvent

      public NationRangeAllowTownEvent(Nation nation, Town town)
      An event fired before a town is deemed too far to be in the specified nation. May be fired pre-canceled due to Proximity rules. Plugins may use #setCancelled(false) to bypass proximity rules and forcefully allow the town to join, or stay if it already is a member.
  • Method Details

    • getTown

      public Town getTown()
    • getNation

      public Nation getNation()
    • 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