spigot closeinventory event code example Example: Spigot API inventory close @EventHandler public void onInventoryClose(InventoryCloseEvent e) { }