1.12.2 Open inventory with slot

Discussion in 'Spigot Plugin Development' started by Nico12, Feb 7, 2020.

  1. I am working on an inventory plugin, and I have a problem that I have been dealing with for days, it happens that I need to open an inventory by right clicking on an item, that is done and it works perfect, but then I need to open many more inventories but only when I clicked on a slot, for that I obviously have to use inventoryclickevent but I don't know how to obtain those inventories, basically those inventories would be in a yml file but I want to have only 1 inventory, that is to have 1 only method to create inventory but changing its properties ( size, slots, itemstacks etc)
    They understand me? Will you help me?

    YML FILE:
    https://pastebin.com/Xe82nWBg?fbclid=IwAR3tgkr0sQjFsn56LtseuIee1Z0LhRNa9SmGQhe2-815P3i8ORD66qbNGEk
     
  2. That's a lot to just explain in one post. I would recommend looking at other Pagination based inventory libraries, and see how they are doing things.

    Here's one to get you started: https://www.spigotmc.org/threads/paged-inventory-api.416529