[Solved] Open Tab List Event

Hello, I was skimming through the API, searching for a listener that would be fired when a player opens their TabList, but came out empty. For a moment, I thought the TabCompleteEvent listener was the one I was looking for, but this listener must be irrelevant as I could not get it to operate. Is there such listener for what I’m looking for? Any help would be greatly appreciated. Thanks!

Not an answer to your question, but I am fairly sure that the TabCompleteEvent is for when you use auto-complete (pressing tab) for commands in the chat.

Regarding your question, I don’t believe that the client sends a packet to the server when they open their tab menu. What do you want to do in this event?

EDIT:
From the docs for TabCompleteEvent:

Fired when a Player send a tab complete requests.
In Vanilla, this is done by pressing the TAB key while chat is open.

There is no event when the player presses tab because the client doesn’t inform the server.

2 Likes

Okay, thanks. Related question: Would it be possible to get a player to open their tab list for a brief period of time?

The player list is only shown when the player presses the tab key, the server/client don’t exchange any messages for that action. So from the server side, there’s no way of doing that.

1 Like