Class NationZoneTownBlockStatusEvent

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

public class NationZoneTownBlockStatusEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    Event thrown when Towny would return a TownBlockStatus of NationZone, used by the Towny PlayerCache, which would provide a protective bubble surrounding towns which belong to nations.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
     
    boolean
     
    void
    setCancelled(boolean cancel)
     

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NationZoneTownBlockStatusEvent

      public NationZoneTownBlockStatusEvent(Town town)
      Event thrown when Towny would return a TownBlockStatus of NationZone, used by the Towny PlayerCache, which would provide a protective bubble surrounding towns which belong to nations. Cancelling this event will result in the TownBlockStatus returning as UnclaimedZone (normal wild- erness) instead.
      Parameters:
      town - Town which is surrounded by a valid NationZone.
  • Method Details

    • getTown

      public Town getTown()
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancel)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • getHandlerList

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

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