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
ConstructorDescriptionEvent 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 TypeMethodDescriptionstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
getTown()
boolean
void
setCancelled
(boolean cancel) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
NationZoneTownBlockStatusEvent
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
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-