Package org.bukkit.conversations
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.
PluginNameConversationPrefix is a
ConversationPrefix implementation
that displays the plugin name in front of conversation output.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PluginDeprecated, for removal: This API element is subject to removal in a future version.protected ChatColorDeprecated, for removal: This API element is subject to removal in a future version.protected StringDeprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, 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 TypeMethodDescriptiongetPrefix(@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.
-
Field Details
-
separator
Deprecated, for removal: This API element is subject to removal in a future version. -
prefixColor
Deprecated, for removal: This API element is subject to removal in a future version. -
plugin
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
PluginNameConversationPrefix
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
Deprecated, for removal: This API element is subject to removal in a future version.Prepends each conversation message with the plugin name.- Specified by:
getPrefixin interfaceConversationPrefix- Parameters:
context- Context information about the conversation.- Returns:
- An empty string.
-
AsyncChatEventor alternatively usingDialogto get user input.