Files
Paper/paper-api/src/main/java/org/bukkit/conversations/NullConversationPrefix.java
2019-04-28 11:37:52 +10:00

23 lines
593 B
Java

package org.bukkit.conversations;
import org.jetbrains.annotations.NotNull;
/**
* NullConversationPrefix is a {@link ConversationPrefix} implementation that
* displays nothing in front of conversation output.
*/
public class NullConversationPrefix implements ConversationPrefix {
/**
* Prepends each conversation message with an empty string.
*
* @param context Context information about the conversation.
* @return An empty string.
*/
@Override
@NotNull
public String getPrefix(@NotNull ConversationContext context) {
return "";
}
}