Class KonquestTownRaidEvent

java.lang.Object
org.bukkit.event.Event

public class KonquestTownRaidEvent extends KonquestTownEvent
Called after a town has been attacked, caused by a town raid alert.

This event occurs every time a town raid alert is sent to the town's kingdom members, while the town is under attack. Raid alerts have cooldown times specified by the Konquest configuration. A new event is invoked for every raid alert caused by enemy players entering a town, or breaking blocks in the town, while the town is under attack. This event will not be invoked when KonquestTownAttackEvent is cancelled.

  • Constructor Details

    • KonquestTownRaidEvent

      public KonquestTownRaidEvent(KonquestAPI konquest, KonquestTown town, KonquestPlayer attacker)
      Default constructor
      Parameters:
      konquest - The API instance
      town - The town
      attacker - The attacking player that caused the raid alert
  • Method Details

    • getAttacker

      public KonquestPlayer getAttacker()
      Gets the attacking player that caused the raid alert.
      Returns:
      The attacker
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Get the handler list
      Returns:
      handlers
    • getHandlers

      @Nonnull public org.bukkit.event.HandlerList getHandlers()
      Get the handler list
      Specified by:
      getHandlers in class KonquestEvent
      Returns:
      handlers