类 PlayerChatTabCompleteEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerChatTabCompleteEvent

public class PlayerChatTabCompleteEvent extends PlayerEvent
当玩家尝试补全聊天消息时触发本事件
  • 构造器详细资料

  • 方法详细资料

    • getChatMessage

      public String getChatMessage()
      获取将被补全的聊天消息.

      原文:Gets the chat message being tab-completed.

      返回:
      聊天消息
    • getLastToken

      public 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.

      返回:
      聊天消息的最后一个标记
    • getTabCompletions

      public Collection<String> getTabCompletions()
      获取所有补全项集合.

      原文:This is the collection of completions for this event.

      返回:
      补全项
    • getHandlers

      public HandlerList getHandlers()
      指定者:
      getHandlers 在类中 Event
    • getHandlerList

      public static HandlerList getHandlerList()