Class PlotGroupDeletedEvent

java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.CancellableTownyEvent
com.palmergames.bukkit.towny.event.plot.group.PlotGroupDeletedEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class PlotGroupDeletedEvent extends CancellableTownyEvent
  • Constructor Details

    • PlotGroupDeletedEvent

      public PlotGroupDeletedEvent(@NotNull @NotNull PlotGroup group, @Nullable @Nullable org.bukkit.entity.Player player, @NotNull @NotNull PlotGroupDeletedEvent.Cause deletionCause)
  • Method Details

    • getPlotGroup

      @NotNull public @NotNull PlotGroup getPlotGroup()
      Returns:
      The plot group that is being deleted.
    • getPlayer

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

      public PlotGroupDeletedEvent.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