Skip to content

[BUG] Issue with register_command: true and multiple commands defined in open_command:  #166

@NoltoxGit

Description

@NoltoxGit

Hello,

I recently encountered an issue with the latest DevBuild of DeluxeMenus regarding the management of commands in the open_command section.

When multiple commands are defined in the open_command: section, some of them do not work correctly. This prevents players from using all the configured commands to open menus.
Among the defined commands, only the first one in the list displays the latest version of the menu. The other commands display an outdated version of the menu, from the last server restart.
This bug occurs only when the register_command: true option is enabled for a menu.

Steps to reproduce the bug:

  1. Define multiple commands in open_command: and enable the register_command: true option.
  2. Restart the server, modify the menu, and then execute /dm reload.
  3. Open the menu using the defined commands. Only the first command in the list displays the updated menu, while the others display an older version of this menu.

Expected behavior:
All listed commands should display the current menu, not an outdated version of this menu.

Additional information:

  • DeluxeMenus version: 1.14.1-DEV-PR--ee7573d0
  • Server version: Fork of Paper (1.21.3)
  • Configuration used:
open_command:
  - caisse
  - caisses
register_command: true
  • Video example:
    • The not outdated menu have dirt, bcs I open with /caisse command, so the first command defined.
    • The outdated menu doesn't have dirt, bcs I open with /caisses command, so the second command defined.
2025-01-12.01-11-44.mp4

Thank you in advance for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions