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