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