Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-2819

Tab Completion of vanilla commands doesn't work through an alias

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • None
    • Spigot 1.11 (git-Spigot-16c940b-691628a (MC: 1.11) (Implementing API version 1.11-R0.1-SNAPSHOT)
      Bungeecord (#1205)

      On my Spigot server I found I was unable to tab complete the /give command. I was told by md_5 that tab completion only works on vanilla commands so if a plugin overrides the command it will not work. Using /minecraft:give works as I would have expected.

      I then tried to use the provided commands.yml file to alias /give to the vanilla version of the give command to try to get around a plugin overriding the command causing tab completion not to work.

      Example:

      give:
          - "minecraft:give $1-"
      

      This did not work however even though I confirmed I made no typos when defining the alias. So I then went on to remove ALL plugins to ensure there were no plugins that could override the give command. I left the alias defined in commands.yml and I found that just this alone caused the tab completion not to work. As soon as I removed the alias defined in commands.yml and had no plugins it began working again.

      This means that the alias is unable to forward the tab completion down to the command defined in the alias even though the command defined would normally work with tab completion.

      Its mostly a QOL issue and an annoyance but I consider it a bug as the alias system should be able to support tab completion. Whether this would be something that can be fixed or not i'm not sure.

            Unassigned Unassigned
            Drekryan Derrick Lambert
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: