How to transfer to a different inventory from an inventory

Discussion in 'Spigot Plugin Development' started by xUbalubex, Jun 6, 2018.

  1. So I am trying to have a inventory that initiates on /craft. (This part already works) But I am trying to do categories like Weapons, armor, etc. How would I open another menu that is located in another class?

    Menu 1: https://pastebin.com/iPRNUpJw
    Menu 2: https://pastebin.com/z6iiG639

    This is probably a really easy fix but I do not understand how I would do it.
     
  2. You just open the inventory when they perform an action. I believe this has to be done 1 tick after the event fires? Or maybe that's with closing inventories.
     
  3. That’s when closing inventories, but yeah listen to InventoryClickEvent then just open the new inventory.