ConversationPrefixpublic class PluginNameConversationPrefix extends 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 String | separator | 
| Constructor | Description | 
|---|---|
| PluginNameConversationPrefix(@NotNull Plugin plugin) | |
| PluginNameConversationPrefix(@NotNull Plugin plugin,
                            @NotNull String separator,
                            @NotNull ChatColor prefixColor) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| @NotNull String | getPrefix(@NotNull ConversationContext context) | Prepends each conversation message with the plugin name. | 
protected String separator
protected ChatColor prefixColor
protected Plugin plugin
public PluginNameConversationPrefix(@NotNull
                                    @NotNull Plugin plugin)
@NotNull public @NotNull String getPrefix(@NotNull @NotNull ConversationContext context)
getPrefix in interface ConversationPrefixcontext - Context information about the conversation.Copyright © 2020. All rights reserved.