84858687888990919293
} } public void closeMenu(Player player) { if (getInventory().getViewers().contains(player)) { InventoryCloseEvent event = new InventoryCloseEvent(player.getOpenInventory()); Bukkit.getPluginManager().callEvent(event); player.closeInventory(); } }