public class PlayerChatTabCompleteEvent extends PlayerEvent
Event.Result
player
Constructor | Description |
---|---|
PlayerChatTabCompleteEvent(Player who,
String message,
Collection<String> completions) |
Modifier and Type | Method | Description |
---|---|---|
String |
getChatMessage() |
Gets the chat message being tab-completed.
|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
String |
getLastToken() |
Gets the last 'token' of the message being tab-completed.
|
Collection<String> |
getTabCompletions() |
This is the collection of completions for this event.
|
callEvent, getEventName, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPlayer
public PlayerChatTabCompleteEvent(Player who, String message, Collection<String> completions)
public String getChatMessage()
public String getLastToken()
The token is the substring starting with the character after the last space in the message.
public Collection<String> getTabCompletions()
public HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
Copyright © 2019. All rights reserved.