Class TabCompleteEvent
java.lang.Object
com.velocitypowered.api.event.player.TabCompleteEvent
This event is fired after a tab complete response is sent by the remote server, for clients on
1.12.2 and below. You have the opportunity to modify the response sent to the remote player.
-
Constructor Summary
ConstructorsConstructorDescriptionTabCompleteEvent(Player player, String partialMessage, List<String> suggestions) Constructs a new TabCompleteEvent instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the message being partially completed.Returns the player requesting the tab completion.Returns all the suggestions provided to the user, as a mutable list.toString()
-
Constructor Details
-
TabCompleteEvent
Constructs a new TabCompleteEvent instance.- Parameters:
player- the playerpartialMessage- the partial messagesuggestions- the initial list of suggestions
-
-
Method Details
-
getPlayer
Returns the player requesting the tab completion.- Returns:
- the requesting player
-
getPartialMessage
Returns the message being partially completed.- Returns:
- the partial message
-
getSuggestions
Returns all the suggestions provided to the user, as a mutable list.- Returns:
- the suggestions
-
toString
-