org.bukkit.conversations
Class PluginNameConversationPrefix

java.lang.Object
  extended by 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.


Field Summary
protected  Plugin plugin
           
protected  ChatColor prefixColor
           
protected  String separator
           
 
Constructor Summary
PluginNameConversationPrefix(Plugin plugin)
           
PluginNameConversationPrefix(Plugin plugin, String separator, ChatColor prefixColor)
           
 
Method Summary
 String getPrefix(ConversationContext context)
          Prepends each conversation message with the plugin name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

separator

protected String separator

prefixColor

protected ChatColor prefixColor

plugin

protected Plugin plugin
Constructor Detail

PluginNameConversationPrefix

public PluginNameConversationPrefix(Plugin plugin)

PluginNameConversationPrefix

public PluginNameConversationPrefix(Plugin plugin,
                                    String separator,
                                    ChatColor prefixColor)
Method Detail

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.