Class BlockBreakListener

java.lang.Object
com.ranull.graves.listener.BlockBreakListener
All Implemented Interfaces:
org.bukkit.event.Listener

public class BlockBreakListener extends Object implements org.bukkit.event.Listener
Listens for BlockBreakEvent to handle interactions with grave blocks and prevent block breaking within a specified radius of a grave.
  • Constructor Details

    • BlockBreakListener

      public BlockBreakListener(Graves plugin)
      Constructs a new BlockBreakListener with the specified Graves plugin.
      Parameters:
      plugin - The Graves plugin instance.
  • Method Details

    • onBlockBreak

      public void onBlockBreak(org.bukkit.event.block.BlockBreakEvent event)
      Handles BlockBreakEvent to manage interactions with grave blocks when a block is broken.
      Parameters:
      event - The BlockBreakEvent to handle.