public class PluginNameConversationPrefix extends Object implements ConversationPrefix
ConversationPrefix implementation
 that displays the plugin name in front of conversation output.| Modifier and Type | Field and Description | 
|---|---|
protected Plugin | 
plugin  | 
protected ChatColor | 
prefixColor  | 
protected String | 
separator  | 
| Constructor and Description | 
|---|
PluginNameConversationPrefix(Plugin plugin)  | 
PluginNameConversationPrefix(Plugin plugin,
                            String separator,
                            ChatColor prefixColor)  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getPrefix(ConversationContext context)
Prepends each conversation message with the plugin name. 
 | 
protected String separator
protected ChatColor prefixColor
protected Plugin plugin
public PluginNameConversationPrefix(@NotNull
                                    Plugin plugin)
@NotNull public String getPrefix(@NotNull ConversationContext context)
getPrefix in interface ConversationPrefixcontext - Context information about the conversation.Copyright © 2022. All rights reserved.