Class PlayerChangePlotTypeEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.plot.PlayerChangePlotTypeEvent
public class PlayerChangePlotTypeEvent
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
ConstructorsConstructorDescriptionPlayerChangePlotTypeEvent
(TownBlockType newType, TownBlockType oldType, TownBlock townBlock, org.bukkit.entity.Player player) Thrown when a player has changed the plot type of a TownBlock successfully. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
@NotNull org.bukkit.event.HandlerList
org.bukkit.entity.Player
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerChangePlotTypeEvent
public PlayerChangePlotTypeEvent(TownBlockType newType, TownBlockType oldType, TownBlock townBlock, org.bukkit.entity.Player player) Thrown when a player has changed the plot type of a TownBlock successfully.- Parameters:
newType
- New TownBlockTypeoldType
- Previous TownBlockTypetownBlock
- TownBlock which had a change of TownBlockType.player
- The player who changed a plot type.
-
-
Method Details
-
getNewType
-
getOldType
-
getTownBlock
-
getPlayer
public org.bukkit.entity.Player getPlayer() -
getResident
-
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
-