Class DistrictDeletedEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.CancellableTownyEvent
com.palmergames.bukkit.towny.event.plot.district.DistrictDeletedEvent
- 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
ConstructorDescriptionDistrictDeletedEvent
(@NotNull District district, @Nullable org.bukkit.entity.Player player, @NotNull DistrictDeletedEvent.Cause deletionCause) -
Method Summary
Modifier and TypeMethodDescription@NotNull District
static org.bukkit.event.HandlerList
@NotNull org.bukkit.event.HandlerList
@Nullable org.bukkit.entity.Player
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
-
DistrictDeletedEvent
public DistrictDeletedEvent(@NotNull @NotNull District district, @Nullable @Nullable org.bukkit.entity.Player player, @NotNull @NotNull DistrictDeletedEvent.Cause deletionCause)
-
-
Method Details
-
getDistrict
- Returns:
- The district that is being deleted.
-
getPlayer
@Nullable public @Nullable org.bukkit.entity.Player getPlayer()- Returns:
- The player associated with the deletion, if applicable.
-
getDeletionCause
-
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
-