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 a ConversationPrefix
implementation that displays the plugin name in front of
conversation output.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
separator
protected String separator
prefixColor
protected ChatColor prefixColor
plugin
protected Plugin plugin
PluginNameConversationPrefix
public PluginNameConversationPrefix(Plugin plugin)
PluginNameConversationPrefix
public PluginNameConversationPrefix(Plugin plugin,
String separator,
ChatColor prefixColor)
getPrefix
public String getPrefix(ConversationContext context)
- Prepends each conversation message with the plugin name.
- Specified by:
getPrefix
in interface ConversationPrefix
- Parameters:
context
- Context information about the conversation.
- Returns:
- An empty string.
Copyright © 2013. All Rights Reserved.