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