Class NationPreTownLeaveEvent

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

public class NationPreTownLeaveEvent extends CancellableTownyEvent
  • Constructor Details

    • NationPreTownLeaveEvent

      public NationPreTownLeaveEvent(Nation nation, Town town)
      Cancellable event thrown when a player in charge of a town uses /n leave, to leave the nation they are joined in.
      Parameters:
      nation - Nation being left.
      town - Town leaving the nation.
  • Method Details

    • getTownName

      public String getTownName()
    • getNationName

      public String getNationName()
    • getTown

      public Town getTown()
    • getNation

      public Nation getNation()
    • 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