Class PlotToggleEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.CancellableTownyEvent
com.palmergames.bukkit.towny.event.plot.toggle.PlotToggleEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
- Direct Known Subclasses:
PlotToggleExplosionEvent
,PlotToggleFireEvent
,PlotToggleMobsEvent
,PlotTogglePvpEvent
,PlotToggleTaxedEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionPlotToggleEvent
(TownBlock townBlock, org.bukkit.entity.Player player, boolean futureState) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static org.bukkit.event.HandlerList
@NotNull org.bukkit.event.HandlerList
org.bukkit.entity.Player
getTown()
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
-
PlotToggleEvent
-
-
Method Details
-
getTownBlock
-
getTown
-
getFutureState
public boolean getFutureState() -
getPlayer
public org.bukkit.entity.Player getPlayer() -
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
-