Package com.ranull.graves.listener
Class InventoryCloseListener
java.lang.Object
com.ranull.graves.listener.InventoryCloseListener
- All Implemented Interfaces:
org.bukkit.event.Listener
Listener for handling InventoryCloseEvent to manage actions when a grave inventory is closed.
-
Constructor Summary
ConstructorsConstructorDescriptionInventoryCloseListener
(Graves plugin) Constructs an InventoryCloseListener with the specified Graves plugin. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onInventoryClose
(org.bukkit.event.inventory.InventoryCloseEvent event) Handles the InventoryCloseEvent to perform actions when a grave inventory is closed.
-
Constructor Details
-
InventoryCloseListener
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.
-