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