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

/**
 * 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);
}