Class KonquestMonumentDamageEvent

java.lang.Object
org.bukkit.event.Event
konquest.api.event.KonquestEvent
konquest.api.event.town.KonquestMonumentDamageEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class KonquestMonumentDamageEvent extends KonquestEvent implements org.bukkit.event.Cancellable
Called when a town monument is damaged. Any block break inside of a town monument counts as damage. This class is a wrapper for Bukkit's BlockBreakEvent.
Author:
Rumsfield
  • Constructor Details

    • KonquestMonumentDamageEvent

      public KonquestMonumentDamageEvent(KonquestAPI konquest, KonquestPlayer player, KonquestTerritory territory, org.bukkit.event.block.BlockBreakEvent blockEvent)
      Constructor for a new event
      Parameters:
      konquest - The KonquestAPI instance
      player - The player that damaged the town monument
      territory - The territory where the monument damage occured
      blockEvent - The Bukkit BlockBreakEvent associated with this monument damage
  • Method Details

    • getPlayer

      public KonquestPlayer getPlayer()
      Get the player that damaged the town monument
      Returns:
      The player
    • getTerritory

      public KonquestTerritory getTerritory()
      Get the territory where the monument damage occured
      Returns:
      The territory
    • getBlockEvent

      public org.bukkit.event.block.BlockBreakEvent getBlockEvent()
      Get Bukkit's BlockBreakEvent associated with the damage
      Returns:
      The break event that triggered this Konquest event
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean val)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable