mojira.dev
MCPE-138567

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

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!

[media]

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.

    [media][media]
  • 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

    [media][media]

 

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: /`.

    [media]
  • 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.

Attachments

Comments 8

Thank you for your report!

However, this issue has been temporarily closed as Awaiting Response.

Is this still an issue in the latest version? If yes, can you please add it to the affected versions (or mention it if you are not the reporter)?

This ticket will automatically reopen when you reply.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response

To make your bug report as effective as possible, please include the following steps to reproduce the problem:

Steps to Reproduce:
1.
2.
3.

Observed Results:
(Briefly describe what happens)

Expected Results:
(Briefly describe what should happen)

If your ticket does not look like the example given here, then it's likely to be closed as incomplete.

This ticket will automatically reopen when you reply.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

I have updated the issue to the suggested style

Still applies to the latest version. Development build does not yield any useful output either. 

 

Deleting my confirmation due to not understanding the issue the first time I tested. 

What might be important to clear some confusion:

There is a cosmetic slash / added by Minecraft before any command. It initiates the command completion to be shown, as well as parameters.

The commands of the plugins are registered with an additional slash. So where Minecraft registers "setblock <position: x y z> <tileName: Block> <blockStates: block states> [destroy|keep|replace]" and it shows up as "/setblock", our plugin registers it as "/set <block: Block>" which shows as "//set".

 

Thank you for your report!
However, this issue is Invalid.

The server you are playing on is modified.
If you can reproduce the issue in a vanilla environment, please recreate the issue.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

thebigsmileXD

(Unassigned)

Unconfirmed

Multiple

1.19.30.23 Preview, 1.17.30.21 Beta, 1.17.30.20 Beta, 1.17.11 Hotfix, 1.19.21 Hotfix

Retrieved