Class TabCompleteEvent


  • public class TabCompleteEvent
    extends java.lang.Object
    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
      TabCompleteEvent​(Player player, java.lang.String partialMessage, java.util.List<java.lang.String> suggestions)
      Constructs a new TabCompleteEvent instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getPartialMessage()
      Returns the message being partially completed.
      Player getPlayer()
      Returns the player requesting the tab completion.
      java.util.List<java.lang.String> getSuggestions()
      Returns all the suggestions provided to the user, as a mutable list.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TabCompleteEvent

        public TabCompleteEvent​(Player player,
                                java.lang.String partialMessage,
                                java.util.List<java.lang.String> suggestions)
        Constructs a new TabCompleteEvent instance.
        Parameters:
        player - the player
        partialMessage - the partial message
        suggestions - the initial list of suggestions
    • Method Detail

      • getPlayer

        public Player getPlayer()
        Returns the player requesting the tab completion.
        Returns:
        the requesting player
      • getPartialMessage

        public java.lang.String getPartialMessage()
        Returns the message being partially completed.
        Returns:
        the partial message
      • getSuggestions

        public java.util.List<java.lang.String> getSuggestions()
        Returns all the suggestions provided to the user, as a mutable list.
        Returns:
        the suggestions
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object