Class NationKingChangeEvent

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

public class NationKingChangeEvent extends CancellableTownyEvent
Event that gets fired when a nation's king changes.
  • Constructor Details

    • NationKingChangeEvent

      public NationKingChangeEvent(Resident oldKing, Resident newKing)
  • Method Details

    • getOldKing

      public Resident getOldKing()
    • getNewKing

      public Resident getNewKing()
    • getNation

      public Nation getNation()
    • isCapitalChange

      public boolean isCapitalChange()
    • 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