public class PlayerChatTabCompleteEvent extends PlayerEvent
Event.Result
player
构造器和说明 |
---|
PlayerChatTabCompleteEvent(Player who,
java.lang.String message,
java.util.Collection<java.lang.String> completions) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getChatMessage()
获取将被补全的聊天消息.
|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
java.lang.String |
getLastToken()
获取被补全消息的最后一个'标记'.
|
java.util.Collection<java.lang.String> |
getTabCompletions()
获取所有补全项集合.
|
getPlayer
getEventName, isAsynchronous
public PlayerChatTabCompleteEvent(Player who, java.lang.String message, java.util.Collection<java.lang.String> completions)
public java.lang.String getChatMessage()
原文:Gets the chat message being tab-completed.
public java.lang.String getLastToken()
标记是字符开始后的最后一个组成部分. (比如“res ? test”,这里的last token就是test)
原文: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.
public java.util.Collection<java.lang.String> getTabCompletions()
原文:This is the collection of completions for this event.
public HandlerList getHandlers()
getHandlers
在类中 Event
public static HandlerList getHandlerList()