类 PluginNameConversationPrefix

java.lang.Object
org.bukkit.conversations.PluginNameConversationPrefix
所有已实现的接口:
ConversationPrefix

public class PluginNameConversationPrefix extends Object implements ConversationPrefix
PluginNameConversationPrefix is a ConversationPrefix implementation that displays the plugin name in front of conversation output.
  • 字段详细资料

    • separator

      protected String separator
    • prefixColor

      protected ChatColor prefixColor
    • plugin

      protected Plugin plugin
  • 构造器详细资料

    • PluginNameConversationPrefix

      public PluginNameConversationPrefix(Plugin plugin)
    • PluginNameConversationPrefix

      public PluginNameConversationPrefix(Plugin plugin, String separator, ChatColor prefixColor)
  • 方法详细资料

    • getPrefix

      public String getPrefix(ConversationContext context)
      Prepends each conversation message with the plugin name.
      指定者:
      getPrefix 在接口中 ConversationPrefix
      参数:
      context - Context information about the conversation.
      返回:
      An empty string.