Class TownPreReclaimEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.CancellableTownyEvent
com.palmergames.bukkit.towny.event.town.TownPreReclaimEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionTownPreReclaimEvent
(Town town, Resident resident, org.bukkit.entity.Player player) -
Method Summary
Methods inherited from class com.palmergames.bukkit.towny.event.CancellableTownyEvent
getCancelMessage, isCancelled, setCancelled, setCancelMessage
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
TownPreReclaimEvent
- Parameters:
town
- The Town being reclaimed.resident
- The resident who would become mayor.player
- The Player who would become mayor.
-
-
Method Details
-
getTown
- Returns:
- the
Town
which will be reclaimed.
-
getResident
- Returns:
- the resident who will become mayor.
-
getPlayer
public org.bukkit.entity.Player getPlayer()- Returns:
- the player who will become mayor.
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-