public class PluginNameConversationPrefix extends java.lang.Object implements ConversationPrefix
ConversationPrefix implementation
that displays the plugin name in front of conversation output.| 限定符和类型 | 字段和说明 |
|---|---|
protected Plugin |
plugin |
protected ChatColor |
prefixColor |
protected java.lang.String |
separator |
| 构造器和说明 |
|---|
PluginNameConversationPrefix(Plugin plugin) |
PluginNameConversationPrefix(Plugin plugin,
java.lang.String separator,
ChatColor prefixColor) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 ConversationPrefixcontext - Context information about the conversation.