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 Link icon

    • TownAddEnemiedTownEvent Link icon

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

    • getTown Link icon

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

      public Town getNewEnemy()
      Returns:
      newEnemy Town which is being added as a new enemy.
    • getHandlerList Link icon

      public static org.bukkit.event.HandlerList getHandlerList()
    • getHandlers Link icon

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event