Class PluginNameConversationPrefix

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

@Deprecated(forRemoval=true) public class PluginNameConversationPrefix extends Object implements ConversationPrefix
Deprecated, for removal: This API element is subject to removal in a future version.
The conversation API has been deprecated for removal. This system does not support component based messages and has been slowly losing functionality over the years as Minecraft has changed that this API can not adapt to. It is recommended you instead manually listen to the AsyncChatEvent or alternatively using Dialog to get user input.
PluginNameConversationPrefix is a ConversationPrefix implementation that displays the plugin name in front of conversation output.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Plugin
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected ChatColor
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    PluginNameConversationPrefix(@NotNull Plugin plugin, @NotNull String separator, @NotNull ChatColor prefixColor)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull String
    getPrefix(@NotNull ConversationContext context)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Prepends each conversation message with the plugin name.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • separator

      protected String separator
      Deprecated, for removal: This API element is subject to removal in a future version.
    • prefixColor

      protected ChatColor prefixColor
      Deprecated, for removal: This API element is subject to removal in a future version.
    • plugin

      protected Plugin plugin
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • PluginNameConversationPrefix

      public PluginNameConversationPrefix(@NotNull @NotNull Plugin plugin)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • PluginNameConversationPrefix

      public PluginNameConversationPrefix(@NotNull @NotNull Plugin plugin, @NotNull @NotNull String separator, @NotNull @NotNull ChatColor prefixColor)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getPrefix

      @NotNull public @NotNull String getPrefix(@NotNull @NotNull ConversationContext context)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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.