Class TownAddAlliedTownEvent

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

public class TownAddAlliedTownEvent extends CancellableTownyEvent
  • Constructor Details

    • TownAddAlliedTownEvent

      public TownAddAlliedTownEvent(Town town, Town newAlly)
  • Method Details

    • getTown

      public Town getTown()
      Returns:
      town Town which is receiving a new ally.
    • getNewAlly

      public Town getNewAlly()
      Returns:
      newAlly Town which is being added as a new ally.
    • 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