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

    • NationPreTownLeaveEvent Link icon

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

    • getTownName Link icon

      public String getTownName()
    • getNationName Link icon

      public String getNationName()
    • getTown Link icon

      public Town getTown()
    • getNation Link icon

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