#[DeluxeMenus] How to make a menu command register in tab complete

1 messages · Page 1 of 1 (latest)

mellow star
#

The title pretty much is self explanatory, but essentially I want menu /foo to autocomplete.

proud loom
#

coming to help you

#

Add this to your menu options:

#
register_command: true
open_command: foo```
#

This is going to override any already existing /foo

#

@mellow star

mellow star
#

when I add that to the top of the file, it doesn't even let any of the commands work

proud loom
#

Can you send the menu here?

mellow star
#
#  A DeluxeMenus advanced configuration guide
#=========================================================
menu_title: '&8> &6&lD&eM &bAdvanced Example'
open_command:
  - advancedmenu
  - advancedexamplemenu
  - themostadvancedmenuintheworld
open_commands:
  - '[sound] BLOCK_BEACON_ACTIVATE'
  - '[message] &7Opening Advanced example menu, Plugin created by &bextended_clip&7!'
size: 27
register_command: true
# as always, only cool people can open this menu :)
open_requirement:
  requirements:
    permission:
      type: has permission
      permission: deluxemenus.admin
      deny_commands:
        - "[message] &8[&bDeluxe&eMenus&8] &cYou don't have perms for this!"
proud loom
#

Is this the default menu?

mellow star
#

yeah but it will work for any menu

#

even those commands dont work

#

but when I remove the line register_command:true the commands work fine

proud loom
#

Dude you have 2 open_commands option

mellow star
#

yeah you can have that

#

but I guess not with registering multiple commands

#

i can try to remove one command

proud loom
#

Nope

#

It should not be a problem

#

What's your server version

#

and dm version

mellow star
#

thats not the issue either

#

dm version: 1.13.6-Release

#

This server is running Paper version git-Paper-138 (MC: 1.19.2) (Implementing API version 1.19.2-R0.1-SNAPSHOT) (Git: 09904fd)
You are 53 version(s) behind
Download the new version at: https://papermc.io/downloads
Previous version: git-Paper-173 (MC: 1.19.2)

#

maybe an update may fix it?

proud loom
#

No, it won't

#

So with the menu you sent me the command advancedmenu is not getting registered?

mellow star
#

none of those commands are getting registered

proud loom
#

Did you restart your server?

mellow star
#

that may be why

proud loom
#

try

#

and tell me if it fixes the problem

mellow star
#

yeah that makes sense, because if the registering of the command is done on the enable setup, it wont enable without a restart

proud loom
#

Yep

mellow star
#

that did it

#

thank you for the suggestion, i guess i just didnt think of that!

proud loom
#

Don't worry!

#

Have a great one!

mellow star
#

/close

#

damn, i wondered if that was a thing lol

#

worth a shot in the dark lmao

proud loom
#

you're in forum

mellow star
#

ik, but it would be cool to /close and it would auto delete the thread

proud loom
#

just click the 3 points at right bottom

#

and click "close post"