#how to add a menu to an item inside the main menu command

1 messages · Page 1 of 1 (latest)

median sedge
#

How can I add a command to go to a separate menu that is made in a separate file with same plugin? For Example: /help is the main menu in the whole plugin, I am trying to add items to that help menu that will then take the user to another menu created in another file with more items with info regarding the item they selected in the help menu

ember remnant
#

note:

gui_menus:
  <MenuName>:
    file: <FileName>.yml
#

make sure to use the <MenuName>

median sedge
#

do i leave the <> ?

#

and how would i define it in the gui menu file...

summer trout
median sedge
#

alright

#

how would I define it in the menu config file tho?

#

this is currently what i got

items:
  # Here you need to set the name ID of the item. This name however, does not display on the menu. Every item must have a unique name ID.
  # In this example, we will call this item name ID: "teststone"
  'ticket':
    #We will start to create a STONE item,
    material: RED_CONCRETE
    # with a Block data set to 1, so that you can change stone type from STONE to GRANITE. More information about the block data can be checked through each items from Minecraft Wikipedia
    data: 1
    # Slots that you want to put the item. Starts from 0
    slot: 0
    # Here we will name this item. You can change this at anytime. PlaceholderAPI & Color codes supported
    display_name: "&1Has your question not been answered here?"
    # This is the lore setting. Reference of this same with display_name.
    # You can create multiple lines of lore like this
    lore:
      - "&7Feel free to message any staff member or"
      - "&7make a ticket using &b/ticket create [problem]&7."
      - "&7Staff members are the users that have the Helper,"
      - "&7Moderator, Admin, Dev, Manager, and Owner Prefix!"
    'ranks':
      material: DIAMOND_BLOCK
      data: 1
      slot: 11
      display_name: "&bServer Ranks"
      

gui_menus:
   ranks_menu:
      file: 'ranks_menu.yml'