Package org.bukkit.conversations
Class PluginNameConversationPrefix
- java.lang.Object
-
- org.bukkit.conversations.PluginNameConversationPrefix
-
- All Implemented Interfaces:
ConversationPrefix
public class PluginNameConversationPrefix extends Object implements ConversationPrefix
PluginNameConversationPrefix is aConversationPrefiximplementation that displays the plugin name in front of conversation output.
-
-
Constructor Summary
Constructors Constructor Description PluginNameConversationPrefix(@NotNull Plugin plugin)PluginNameConversationPrefix(@NotNull Plugin plugin, @NotNull String separator, @NotNull ChatColor prefixColor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull StringgetPrefix(@NotNull ConversationContext context)Prepends each conversation message with the plugin name.
-
-
-
Method Detail
-
getPrefix
@NotNull public @NotNull String getPrefix(@NotNull @NotNull ConversationContext context)
Prepends each conversation message with the plugin name.- Specified by:
getPrefixin interfaceConversationPrefix- Parameters:
context- Context information about the conversation.- Returns:
- An empty string.
-
-