Class TownClaimEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.TownClaimEvent
public class TownClaimEvent
extends org.bukkit.event.Event
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionTownClaimEvent
(TownBlock townBlock, org.bukkit.entity.Player player, boolean isOverClaim) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
Gets the resident claiming the townblock.getTown()
boolean
Whether the claim has resulted from takeoverclaim.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
TownClaimEvent
-
-
Method Details
-
getHandlers
public 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 claim has resulted from takeoverclaim.- Returns:
- true if the claim resulted from /t takeoverclaim.
-
getTownBlock
- Returns:
- the new TownBlock.
-
getResident
Gets the resident claiming the townblock.- Returns:
- The resident claiming.
-
getTown
- Returns:
- the Town which claimed this TownBlock.
-