Class TownPreRenameEvent

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

public class TownPreRenameEvent extends CancellableTownyEvent
  • Constructor Details

    • TownPreRenameEvent

      public TownPreRenameEvent(Town town, String newName)
  • Method Details

    • getOldName

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

      public String getNewName()
      Returns:
      the new town name.
    • getTown

      public Town getTown()
      Returns:
      the town 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