Class TownAddEnemiedTownEvent

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

public class TownAddEnemiedTownEvent extends CancellableTownyEvent
  • Constructor Details

    • TownAddEnemiedTownEvent

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

    • getTown

      public Town getTown()
      Returns:
      town Town which is receiving a new enemy.
    • getNewEnemy

      public Town getNewEnemy()
      Returns:
      newEnemy Town which is being added as a new enemy.
    • 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