Class TabCompleteEventImpl
- java.lang.Object
-
- com.velocitypowered.api.event.player.TabCompleteEventImpl
-
- All Implemented Interfaces:
Event,TabCompleteEvent
public class TabCompleteEventImpl extends Object implements 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
Constructors Constructor Description TabCompleteEventImpl(Player player, String partialMessage, List<String> suggestions)Constructs a new TabCompleteEvent instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringpartialMessage()Returns the message being partially completed.Playerplayer()Returns the player requesting the tab completion.List<String>suggestions()Returns all the suggestions provided to the user, as a mutable list.StringtoString()
-
-
-
Method Detail
-
player
public Player player()
Returns the player requesting the tab completion.- Specified by:
playerin interfaceTabCompleteEvent- Returns:
- the requesting player
-
partialMessage
public String partialMessage()
Returns the message being partially completed.- Specified by:
partialMessagein interfaceTabCompleteEvent- Returns:
- the partial message
-
suggestions
public List<String> suggestions()
Returns all the suggestions provided to the user, as a mutable list.- Specified by:
suggestionsin interfaceTabCompleteEvent- Returns:
- the suggestions
-
-