Class PreDeleteTownEvent

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

public class PreDeleteTownEvent extends CancellableTownyEvent
  • Constructor Details

    • PreDeleteTownEvent

      public PreDeleteTownEvent(@NotNull @NotNull Town town, @NotNull DeleteTownEvent.Cause cause, @Nullable @Nullable org.bukkit.command.CommandSender sender)
  • Method Details

    • getTownName

      public String getTownName()
      Returns:
      the deleted towns name.
    • getTown

      public Town getTown()
      Returns:
      the deleted town object.
    • getCause

      @NotNull public DeleteTownEvent.Cause getCause()
    • getSender

      @Nullable public @Nullable org.bukkit.command.CommandSender getSender()
      Returns:
      The command sender who caused the deletion.
    • getSenderResident

      @Nullable public @Nullable Resident getSenderResident()
      Returns:
      The getSender() as a resident.
    • 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