#DeluxeMenus & MyCommand

1 messages · Page 1 of 1 (latest)

silent terrace
#

I have a custom menu that opens up with /menu (using MyCommand) and links to menu.yml in DeluxeMenus. In the GUI of /menu I have a section that's clickable and takes you to a jobs leaderboard (leaderboard.yml, in DeluxeMenus). My custom command for /menu also has tab completers for jobs and leaderboard, but with viewable permission. When running the command, /menu jobs leaderboard I get the output (in chat) of <playername>: dm open menu. I've tried creating a second command to help out (which I have hashed out currently, https://paste.helpch.at/azigolebiv.yaml ) and instead of working how tab completer should, it shows up as the full command, /menu jobs leaderboard and still gives the same output of <playername>: dm open menu. What am I missing, or doing wrong? ||even with the hashed out section enabled, the clickable section in the GUI works as intended||

silent terrace
#

I figured it out... FINALLY! after lots of trial and error ||and ChatGPT help||, and in case anyone else EVER has this issue, this is what I'm using.

  command: /menu
  type: RUN_COMMAND
  runcmd:
    - '$Script$%if%$arg1==jobs<and>$arg2==leaderboard'
    - '/dm open leaderboard'
    - '$Script$%else%'
    - '/dm open menu'
  permission-required: false
  register: true
  tab_completer:
    '1':
      - jobs<permission>menu.jobs
    '2':
      - leaderboard<permission>menu.jobs.leaderboard```