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

public class DistrictDeletedEvent extends CancellableTownyEvent
  • Constructor Details

    • DistrictDeletedEvent

      public DistrictDeletedEvent(@NotNull @NotNull District district, @Nullable @Nullable org.bukkit.entity.Player player, @NotNull @NotNull DistrictDeletedEvent.Cause deletionCause)
  • Method Details

    • getDistrict

      @NotNull public @NotNull District 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

      public DistrictDeletedEvent.Cause getDeletionCause()
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event