Class PluginNameConversationPrefix

java.lang.Object
org.bukkit.conversations.PluginNameConversationPrefix
All Implemented Interfaces:
ConversationPrefix

public class PluginNameConversationPrefix extends Object implements ConversationPrefix
PluginNameConversationPrefix is a ConversationPrefix implementation that displays the plugin name in front of conversation output.
  • Field Details

    • separator

      protected String separator
    • prefixColor

      protected ChatColor prefixColor
    • plugin

      protected Plugin plugin
  • Constructor Details

    • PluginNameConversationPrefix

      public PluginNameConversationPrefix(@NotNull Plugin plugin)
    • PluginNameConversationPrefix

      public PluginNameConversationPrefix(@NotNull Plugin plugin, @NotNull String separator, @NotNull ChatColor prefixColor)
  • Method Details

    • getPrefix

      @NotNull public String getPrefix(@NotNull ConversationContext context)
      Prepends each conversation message with the plugin name.
      Specified by:
      getPrefix in interface ConversationPrefix
      Parameters:
      context - Context information about the conversation.
      Returns:
      An empty string.