Solved TabCompleteEvent is broken!

Discussion in 'Spigot Plugin Development' started by Nike_Schuh123, Jan 29, 2020.

  1. In the 1.12.2 the TabCompleteEvent works fine but in 1.13 and versions above ist just broken.
    I mean it doesnt do anything its like the isnt called.

    1.13.2 Code :
    Code (Text):
        @EventHandler
        public void onComplete(TabCompleteEvent event) {      
            List<String> completions = new ArrayList<String>();
            completions.add("Test1");
            completions.add("Test2");
            completions.add("Test3");
            event.setCompletions(completions);
        }
    In the 1.12.2 the Code above just works fine.
     
  2. Maybe this is your issue:
    From the docs:
     
  3. Does that mean that the TabCompleteEvent will no longer be called from the Chat?
    I want to Change the TabCompletion in the Chat and not Commands.
     
  4. Well, it seems like the TabCompleteEvent only fires when a command is being entered. Seems like this got changed recently.
    If you want to do something on tab-complete, you'll probably need to hope that that information is even sent to the server (which could not be the case, I suspect that the client only sends a Tab-complete packet if the client tries to enter a command)
     
  5. Thank you! It is sad but thats how it works ;C