Files
Paper/paper-api/src/main/java/org/bukkit/conversations/ConversationPrefix.java
2019-03-13 17:42:57 +11:00

21 lines
602 B
Java

package org.bukkit.conversations;
import org.jetbrains.annotations.NotNull;
/**
* 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.
*/
@NotNull
String getPrefix(@NotNull ConversationContext context);
}