Class NationPreRenameEvent

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

public class NationPreRenameEvent extends CancellableTownyEvent
  • Constructor Details

    • NationPreRenameEvent

      public NationPreRenameEvent(Nation nation, String newName)
  • Method Details

    • getOldName

      public String getOldName()
      Returns:
      the old nation name.
    • getNewName

      public String getNewName()
      Returns:
      the new nation name.
    • getNation

      public Nation getNation()
      Returns:
      the nation with it's changed name
    • 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