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 Link icon

    • DistrictDeletedEvent Link icon

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

    • getDistrict Link icon

      @NotNull public @NotNull District getDistrict()
      Returns:
      The district that is being deleted.
    • getPlayer Link icon

      @Nullable public @Nullable org.bukkit.entity.Player getPlayer()
      Returns:
      The player associated with the deletion, if applicable.
    • getDeletionCause Link icon

      public DistrictDeletedEvent.Cause getDeletionCause()
    • getHandlerList Link icon

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

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