Create a menu advanced?

Discussion in 'Spigot Plugin Development' started by Whirss, Nov 15, 2016.

  1. Hi I would like to create a menu more advanced of it normal. I can help? ;)
     
    • Funny Funny x 2
    • Optimistic Optimistic x 1
  2. Explain with detail...
     
    • Agree Agree x 5
  3. [Quote = "BourneDev, de la publicaciĆ³n: 2022258, miembro de: 131221"] Explicar con detalle ... [/ quote]
    Create a menu with several pages
     
  4. What sort of a menu? Inventory? Book?

    For an inventory, you just open a different menu if a certain option is selected, nothing more complicated.
     
  5. Yeah, when an icon is clicked, use

    Code (Text):
    p.closeInventory();
    then
    Code (Text):
    p.openInventory(page2here);
     
    • Agree Agree x 1
  6. @BourneDev no need for first closing the inventory, everything is handled perfectly by the minecraft fairies
     
    • Agree Agree x 1
    • Informative Informative x 1
  7. :eek:, I have never known that they could do such a thing!
     
    • Like Like x 1
  8. It is possible + If you open a new inventory directly (without closing the old) the mouse does not reset/switch to the middle.
     
    • Informative Informative x 2
  9. You could even take it further by using some interfaces and custom classes to handle each inventory ;)
     
  10. I would recommend using a custom InventoryHandler, it will make everythying way easier.