Hello again, now i have 2 questions: 1, this event doesnt work : Code:java @EventHandler public void onBagOpen(PlayerInteractEvent event) { Player player = event.getPlayer(); Inventory baginv = Bukkit.createInventory(player, 18, "§e§lBag"); if(player.getInventory().getItemInHand().getType() == Material.FLOWER_POT_ITEM && player.getItemInHand().getItemMeta().getDisplayName() == "§e§lBag") { if(event.getAction() == Action.RIGHT_CLICK_AIR) { player.openInventory(baginv); I have registered it correctly, the listener too. 2, how to save in a arraylist or a list custom inventory?
"Doesn't work" that is a bit vague. What makes you think it doesn't work? Have you added debug prints?
Rocoty It doesn't work just because it does nothing another event that is before this is working this doesn't.
Thanks for clarifying that. "Doesn't work" could be anything. Add some debug prints. See how far you get