Paper icon indicating copy to clipboard operation
Paper copied to clipboard

Spigot.yml option 'send-namespaced' is not respected for console commands

Open WiIIiam278 opened this issue 2 years ago • 1 comments

Expected behavior

The spigot send-namespaced option disables namespace-backed commands from being displayed in TAB completion. I expect with this option set to true, namespaced commands will not be suggested in TAB completion anywhere.

Observed/Actual behavior

Namespace-backed commands were correctly not suggested in TAB completions in-game, but still displayed when TAB completing commands through the server console.

Steps/models to reproduce

Enable namespaced-commands in the spigot.yml config file and observe as you can still TAB complete namespace-backed minecraft: commands in console (but not in-game)

Plugin and Datapack List

n/a

Paper version

  • 1.19.4-483368e
  • 1.20-3722877
  • Also tested with the latest paperclip from the brigadier commands PR

Other

No response

WiIIiam278 avatar Jun 11 '23 16:06 WiIIiam278

The reason why the option is called send-namespaced is because all it does, is disable the namespaced commands from being "sent" to the client. It doesn't remove them, and if a client manually typed one out, it would still work. As the console isn't a client, and doesn't need to be sent the commands, I'd say this is works-as-intended.

Machine-Maker avatar Jun 11 '23 16:06 Machine-Maker