Class TabCompleteRequestEvent
java.lang.Object
com.velocitypowered.api.event.player.TabCompleteRequestEvent
This event is fired after a tab complete request is sent by a player, for clients on
Minecraft 1.12.2 and below.
Listeners may inspect and modify the partial message before it is sent to the remote server for tab completion.
-
Constructor Summary
ConstructorsConstructorDescriptionTabCompleteRequestEvent(Player player, String partialMessage) Constructs a newTabCompleteRequestEvent. -
Method Summary
Modifier and TypeMethodDescriptionReturns the message being partially completed.Returns the player requesting the tab completion.voidsetPartialMessage(String partialMessage) Updates the partial message to be used for tab completion.toString()Returns a string representation of this event, useful for debugging.
-
Constructor Details
-
TabCompleteRequestEvent
Constructs a newTabCompleteRequestEvent.- Parameters:
player- the player who initiated the tab completion requestpartialMessage- the message being partially completed
-
-
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
-
setPartialMessage
Updates the partial message to be used for tab completion.- Parameters:
partialMessage- the new partial message string
-
toString
Returns a string representation of this event, useful for debugging.
-