summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit/conversations/ConversationPrefix.java
blob: 9889f17e3e6f2873038c73360237d8d08e25bc50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package org.bukkit.conversations;

import org.bukkit.command.CommandSender;

/**
 * A ConversationPrefix implementation prepends all output from the
 * conversation to the player. The ConversationPrefix can be used to display
 * the plugin name or conversation status as the conversation evolves.
 */
public interface ConversationPrefix {

    /**
     * Gets the prefix to use before each message to the player.
     *
     * @param context Context information about the conversation.
     * @return The prefix text.
     */
    String getPrefix(ConversationContext context);
}