Solved How to use TAB to complete the command

Discussion in 'Plugin Development' started by ferrybig, Oct 28, 2012.

Thread Status:
Not open for further replies.
  1. I searched throug the bukkit javadocs, but I was unable to find this, I want if the player presses TAB, that the argument (whits is a player name) is being completed
     
  2. Offline

    gomeow

    It automatically does that. It was a bug in 1.3 that it didn't work
     
  3. I just downloaded 1.4, and it seems its not working for custom commands, only for commands build into minecraft itselfs
     
  4. Offline

    cman1885

    That's how it works. It's built in.
     
  5. Offline

    kroltan

    But Bukkit has a completion API, AFAIK. I saw something on GitHub.
     
  6. Offline

    cman1885

    I don't think that can be done. If you could link that'd be great.
     
  7. Offline

    gomeow

    To use it, do this: Player player = (Player) Bukkit.getPlayer(args[0]);
     
  8. Offline

    cman1885

    Not what he asked.
     
  9. Offline

    chaseoes

    ferrybig likes this.
Thread Status:
Not open for further replies.

Share This Page