Class PreDeleteNationEvent

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

public class PreDeleteNationEvent extends CancellableTownyEvent
  • Constructor Details

    • PreDeleteNationEvent

      public PreDeleteNationEvent(@NotNull @NotNull Nation nation, @NotNull DeleteNationEvent.Cause cause, @Nullable @Nullable org.bukkit.command.CommandSender sender)
  • Method Details

    • getNationName

      public String getNationName()
      Returns:
      the deleted nation name.
    • getNation

      public Nation getNation()
      Returns:
      the deleted nation object.
    • getCause

      @NotNull public DeleteNationEvent.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