Solved Default Tab Completer?

Discussion in 'Spigot Plugin Development' started by Leniency, Nov 11, 2016.

Thread Status:
Not open for further replies.
  1. I want to modify the list of players that shows up when a player tab completes in chat. I know how to do it for one command, but how do i make it so that it does it for all commands and chat messages?
     
  2. Choco

    Moderator

    Listen for the PlayerChatTabCompleteEvent
     
  3. AFAIK (in the javadocs), there is no way to set the list of results in the event.
     
  4. Choco

    Moderator

    I believe #getTabCompletions() is mutable. Let me check real fast.
    EDIT: Yes, it is mutable. Just modify the returned Collection
     
  5. Ok, thank you :D
     
    • Friendly Friendly x 3
Thread Status:
Not open for further replies.