Class PlayerChatTabCompleteEvent


  • @Deprecated
    public class PlayerChatTabCompleteEvent
    extends PlayerEvent
    Deprecated.
    This event is no longer fired due to client changes
    Called when a player attempts to tab-complete a chat message.
    • Constructor Detail

      • PlayerChatTabCompleteEvent

        public PlayerChatTabCompleteEvent​(@NotNull
                                          Player who,
                                          @NotNull
                                          String message,
                                          @NotNull
                                          Collection<String> completions)
        Deprecated.
    • Method Detail

      • getChatMessage

        @NotNull
        public String getChatMessage()
        Deprecated.
        Gets the chat message being tab-completed.
        Returns:
        the chat message
      • getLastToken

        @NotNull
        public String getLastToken()
        Deprecated.
        Gets the last 'token' of the message being tab-completed.

        The token is the substring starting with the character after the last space in the message.

        Returns:
        The last token for the chat message
      • getTabCompletions

        @NotNull
        public Collection<String> getTabCompletions()
        Deprecated.
        This is the collection of completions for this event.
        Returns:
        the current completions
      • getHandlerList

        @NotNull
        public static HandlerList getHandlerList()
        Deprecated.