Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-138567

Commands with trailing slashes/symbols do not autocomplete arguments & append / when pressing tab

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.19.30.23 Preview, 1.17.30.21 Beta, 1.17.30.20 Beta, 1.17.11 Hotfix, 1.19.21 Hotfix
    • None
    • Unconfirmed
    • Multiple

      I am maintaining a world editor for a thirdparty server software and i am registering commands with a `/` upfront, in order to keep the commands consistent with known world editors like FAWE.

      Steps to reproduce

      1. Register a new command that got either a `/` or `#` or `@` as first char. As example i will use the `//set stone` command
      2. Register an argument at the second slot, i.e. a string argument with the parameter name called "block"
      3. Join the server
      4. Be sure to have permissions for the command
      5. Open the chat
      6. Enter `/`
      7. For bug number 1: Press <tab> as many times as wanted
      8. For bug number 2: Type the command and a space, i.e. `//set `
      9. For bug number 3: The registered command is `/help`; Type //help or //? and send it.

       
      The observed result:

      Bug number 1:

      • After pressing the <tab> key, the game appends a `/` to the command. This can be repeated infinitely, ending up with a chat full of `//////`
      • You can also select a command, press <tab>, and the game will put a `/` up front again, resulting in i.e. `///` as seen below!image-2021-08-14-13-53-52-507.png!

      Bug number 2:

      • After entering `//set `, you'd expect the game to suggest you the command parameters and enums. Instead, the command suggestion disappears entirely, and only the chat messages are shown.
      • I have also observed the color change in the suggested commands whilst typing - which means the game knows the commands with the `/` upfront, and does not trim it in it's registry

       

      Bug number 3:

      • As `/help` is a command registered by the plugin/thirdparty server, one would expect that command to be executed.
      • The client sends `Unknown command: /`.
      • The server never receives a command request

       
      The expected result:

      • The game switches between the commands when pressing <tab> as with any other command
      • The game suggests the command parameters and enums, plus lets you <tab> between the enums
      • The command is known and requested on the server, so the worldedit can respond with it's custom help

       

      Important note

      A thirdparty server had to be used as BDS does not support adding commands / parameters without complicated modding

       

      Additional information

      The world editor's name is MagicWE2 if it is necessary to see how things are registered.

        1. image-2021-08-14-13-52-43-385.png
          49 kB
          inxomnyaa
        2. image-2021-08-14-13-53-15-779.png
          6 kB
          inxomnyaa
        3. image-2021-08-14-13-53-52-507.png
          3 kB
          inxomnyaa
        4. image-2021-08-14-13-56-02-667.png
          2 kB
          inxomnyaa
        5. image-2021-08-14-13-57-41-479.png
          2 kB
          inxomnyaa
        6. image-2021-08-14-14-00-44-190.png
          3 kB
          inxomnyaa
        7. image-2022-11-29-19-41-09-178.png
          10 kB
          inxomnyaa
        8. image-2022-11-29-19-50-33-711.png
          31 kB
          inxomnyaa
        9. image-2022-11-29-19-51-29-226.png
          32 kB
          inxomnyaa
        10. image-2022-11-29-19-56-08-015.png
          13 kB
          inxomnyaa
        11. image-2022-11-29-19-56-36-687.png
          13 kB
          inxomnyaa

            thebigsmileXD inxomnyaa
            Votes:
            7 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: