Class InventoryCloseListener

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

public class InventoryCloseListener extends Object implements org.bukkit.event.Listener
Listener for handling InventoryCloseEvent to manage actions when a grave inventory is closed.
  • Constructor Details

    • InventoryCloseListener

      public InventoryCloseListener(Graves plugin)
      Constructs an InventoryCloseListener with the specified Graves plugin.
      Parameters:
      plugin - The Graves plugin instance.
  • Method Details

    • onInventoryClose

      public void onInventoryClose(org.bukkit.event.inventory.InventoryCloseEvent event)
      Handles the InventoryCloseEvent to perform actions when a grave inventory is closed. Calls a custom GraveCloseEvent and manages the state of the grave based on its item amount.
      Parameters:
      event - The InventoryCloseEvent to handle.