#subcategories deluxemenus

1 messages · Page 1 of 1 (latest)

sleek knoll
#

Basically I'm trying to have a main menu like /store, and then like 4 items which you can click on to access other menus

lethal sorrel
#

you can use [openguimenu] <menu-name>

sleek knoll
#
menu_title: '&f&lSkyCoins Shop'
open_command: 
  - skycoinshop
  - skycoin shop
  - sbshop
  - sb shop
  - store
  - coinshop
  - coin shop
size: 27
open_requirement:
  requirements:
    permission:
      type: has permission
      permission: menu.donate
  deny_commands:
    - '[close]'
items:
  'CSHOP':
    material: 'TRIPWIRE_HOOK'
    slot: 10
    hide_attributes: true
    display_name: '&c&lCRATES SHOP'
    lore:
      - '&7Open the crates shop'
    left_click_commands:
      - '[openguimenu] CRATES_SHOP'
    right_click_commands: 
      - '[refresh]'
  'RSHOP':
    material: 'BOOK'
    slot: 12
    hide_attributes: true
    display_name: '&c&lRANKS SHOP'
    lore:
      - '&7Open the ranks shop'
    left_click_commands:
      - '[openguimenu] RANKS_SHOP'
    right_click_commands:
      - '[refresh]'
menu_title: '&c&lCrates Shop'
size: 54
#

I have this here

#

SkyCoins would be the main menu

sleek knoll
lethal sorrel
#

you can't put them in the same yml file

#

1 menu per file

sleek knoll
#

so different files

#

and the <menu-name> would refer to the name of the yml file right

lethal sorrel
#

no

#

?dm-external

chrome crystalBOT
#
FAQ Answer:

1. Go to config.yml and make an entry for your menu

gui_menus:
  first:
    file: first_menu.yml
  second:
    file: second_menu.yml

2. Reload the plugin twice with /dm reload
3. You will see a new folder called gui_menus and your menu should be there
4. Open that menu and edit it to set it up or use the community-made menu maker
5. You are done! Open the menu in-game with /dm open first

lethal sorrel
#

first and second are menu names this

sleek knoll
#

wait so would I have 1 main file for the SkyCoins and then x amount of files for the subcategories

lethal sorrel
#

yes

#

1 menu per file

sleek knoll
#

ahh ok

lethal sorrel
#

1 file per menu

sleek knoll
#

got it

#

so would the SkyCoins file be something like this

#
menu_title: '&f&lSkyCoins Shop'
open_command: 
  - skycoinshop
  - skycoin shop
  - sbshop
  - sb shop
  - store
  - coinshop
  - coin shop
size: 27
open_requirement:
  requirements:
    permission:
      type: has permission
      permission: menu.donate
  deny_commands:
    - '[close]'
gui_menus:
  rankshop:
    file: rankshop.yml
  crateshop:
    file: crateshop.yml
#
menu_title: '&f&lSkyCoins Shop'
open_command: 
  - skycoinshop
  - skycoin shop
  - sbshop
  - sb shop
  - store
  - coinshop
  - coin shop
size: 27
open_requirement:
  requirements:
    permission:
      type: has permission
      permission: menu.donate
  deny_commands:
    - '[close]'
gui_menus:
  rankshop:
    file: rankshop.yml
  crateshop:
    file: crateshop.yml
 items:
   'Ranks Shop':
     material: 'PAPER'
     slot: 10
     hide_attributes: true
     display_name: '&c&lRANKS SHOP'
     lore:
       - '&7Click to purchase ranks'
     left_click_command:
       - '[openguimenu] rankshop'
   'Crates Shop':
     material: 'TRIPWIRE_HOOK'
     slot: 12
     hide_attributes: true
     display_name: '&b&lCRATES SHOP'
     lore:
       - '&7Click to purchase crates'
     left_click_command:
       - '[openguimenu] crateshop'     
#

updated

#

@lethal sorrel what u think

lethal sorrel
#

not correct

#
gui_menus:
  rankshop:
    file: rankshop.yml
  crateshop:
    file: crateshop.yml
#

this does not go in your menu file

#

it goes in your config file

sleek knoll
#

ahh ok

lethal sorrel
#

every menu is individualized

#

none of them link to or depend on another

sleek knoll
#

is everything else fine

lethal sorrel
#

sure

#

actually the indentation for items: is off

sleek knoll
#

yeah discord messes it up

lethal sorrel
#

uh

#

maybe, but it doesn't look like discord did anything here

#

also, it's how you paste it, nothing to do with discord anyway

sleek knoll
#

fixed it

#

ty for pointing it out

#

would it be like this

lethal sorrel
#

looks right

#

better to send pastes of text not images though

sleek knoll
#

yeah for larger codes i will

#

now I reloaded the plugin but none of them load

#

except gkit

lethal sorrel
#

any errors in the console/log?

sleek knoll
lethal sorrel
#

looks like you have open_command: but none actually defined

#

does that sound right?

lethal sorrel
#

?paste

chrome crystalBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
HelpChat Paste - How To Use

sleek knoll
#

sec

lethal sorrel
#

again, best to send pastes not images

chrome crystalBOT
#
FAQ Answer:

Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.

lethal sorrel
#

if you wanna send the whole log this

sleek knoll
#

I'll send the crateshop.yml

lethal sorrel
#

doesn't lineup with your log...

#

try a restart see if it fixes things

sleek knoll
#

yeah one sec

chrome crystalBOT
sleek knoll
#

thats the logs there

lethal sorrel
#

part of

#
  1. your skycoins shop still has items: indented wrongly it seems
  2. your gemsshop has the same issue
sleek knoll
#

I'll check

lethal sorrel
#

can you also tell me your dm version

sleek knoll
lethal sorrel
#

i see you're on 1.8.x

sleek knoll
#

let me check

lethal sorrel
#

/dm will tell you

lethal sorrel
sleek knoll
#

1.10.5

lethal sorrel
sleek knoll
#

ok so that one is done

#

ill check others

lethal sorrel
#

it looks like you NEED to define an open_command in your version of deluxemenus

#

that's why it's skipping those menus

sleek knoll
#

where would I define that tho

lethal sorrel
#

just like you did in your skycoin shop

#

open_command: <command>

sleek knoll
#

these are the only errors left

lethal sorrel
#

or

open_command:
- <command>`
sleek knoll
#

in both files?

lethal sorrel
#

yes, your menus need an open_command defined

#

all of them

sleek knoll
#

kk

#

would it be ideal to have the same open commands

lethal sorrel
#

you can't

#

in newer versions of deluxemenus, you can delete the open_command entirely, but you're using an older mc version and dm version so you can't

#

you could make it anything though

#

like open_command: h12uhg3j12k312

#

and nobody is gonna know

sleek knoll
#

would updating fix it

lethal sorrel
#

no, the latest dm version for 1.8.x is 1.10.5

sleek knoll
#

ah ok

#

nvm then

#

okay so now i got no errors

#

but nothing happens when clicking on each menu

sleek knoll
#

@lethal sorrel last ping fr but any idea

sleek knoll
#

is there any ordering that im doing wrong or something

lethal sorrel
#

Send any menu you're having issues with

chrome crystalBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
HelpChat Paste - How To Use

sleek knoll
#

nothing happens

lethal sorrel
#

can you send your config.yml as well

#

and a startup log would be helpful to have

#

?startuplog

chrome crystalBOT
#
FAQ Answer:

Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.

sleek knoll
#

yeah one second

#

thats the config.yml

lethal sorrel
#

hmm

#

maybe it didn't exist back then

#

you can use /dm open <player> <menuname>

#

[console] dm open %player_name% rankshop

sleek knoll
#

kk

#
menu_title: '&f&lSkyCoins Shop'
open_command: 
  - skycoinshop
  - skycoin shop
  - sbshop
  - sb shop
  - store
  - coinshop
  - coin shop
size: 27
open_requirement:
  requirements:
    permission:
      type: has permission
      permission: menu.donate
  deny_commands:
    - '[close]'
items:
   'Ranks Shop':
     material: 'PAPER'
     slot: 10
     hide_attributes: true
     display_name: '&c&lRANKS SHOP'
     lore:
       - '&7Click to purchase ranks'
     left_click_command:
       - '[console] dm open rankshop %player_name%'
   'Crates Shop':
     material: 'TRIPWIRE_HOOK'
     slot: 13
     hide_attributes: true
     display_name: '&b&lCRATES SHOP'
     lore:
       - '&7Click to purchase crates'
     left_click_command:
       - '[console] dm open crateshop %player_name%'     
     right_click_commands:
       - '[refresh]'  
#

so something like this?

#

cause ingame command is /dm open <menuname> <player>

lethal sorrel
#

oh, yea

sleek knoll
#

is there anything else i need to change

#

cause rn left clicking does nothing still

lethal sorrel
#

ahhhhhh

#

i know why!

#

you have left_click_command with no s

#

you need the s

sleek knoll
#

so the default open gui thing should work

#

works now tho

#

ty for all the help

#

someone that deserves support fr

#

do u by any chance know the best or fastest way to make a back button