Class KonquestRuinAttackEvent

java.lang.Object
org.bukkit.event.Event
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class KonquestRuinAttackEvent extends KonquestRuinEvent implements org.bukkit.event.Cancellable
Called when a player breaks a critical block within a ruin, but before KonquestRuinCaptureEvent

Players can only break critical blocks inside of ruins. Canceling this event prevents the block from braking.

  • Constructor Details

    • KonquestRuinAttackEvent

      public KonquestRuinAttackEvent(KonquestAPI konquest, KonquestRuin ruin, KonquestPlayer attacker, org.bukkit.block.Block block)
      Default constructor
      Parameters:
      konquest - The API instance
      ruin - The ruin
      attacker - The attacking player
      block - The block
  • Method Details

    • getAttacker

      public KonquestPlayer getAttacker()
      Gets the attacking player.
      Returns:
      The attacker
    • getBlock

      public org.bukkit.block.Block getBlock()
      Gets the block broken by the attacker.
      Returns:
      The block
    • 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