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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
@NotNull org.bukkit.event.HandlerList
@Nullable Town
getTown()
Gets the unclaimedWorldCoord
.boolean
Whether the unclaim has resulted from takeoverclaim.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
TownUnclaimEvent
-
-
Method Details
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.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
- Returns:
Town
which is unclaiming land.
-
getWorldCoord
Gets the unclaimedWorldCoord
.- Returns:
- The
WorldCoord
unclaimed.
-