Uses of Class
org.bukkit.conversations.ConversationFactory
Package
Description
Classes dedicated to facilitate direct player-to-plugin communication.
-
Uses of ConversationFactory in org.bukkit.conversations
Modifier and TypeMethodDescriptionConversationFactory.addConversationAbandonedListener(ConversationAbandonedListener listener)
Adds aConversationAbandonedListener
to all conversations constructed by this factory.ConversationFactory.thatExcludesNonPlayersWithMessage(String playerOnlyMessage)
Prevents this factory from creating a conversation for non-playerConversable
objects.ConversationFactory.withConversationCanceller(ConversationCanceller canceller)
Adds aConversationCanceller
to constructed conversations.ConversationFactory.withEscapeSequence(String escapeSequence)
Sets the player input that, when received, will immediately terminate the conversation.ConversationFactory.withFirstPrompt(Prompt firstPrompt)
Sets the first prompt to use in all generated conversations.ConversationFactory.withInitialSessionData(Map<Object,Object> initialSessionData)
Sets any initial data with which to populate the conversation context sessionData map.ConversationFactory.withLocalEcho(boolean localEchoEnabled)
Sets the local echo status for allConversation
s created by this factory.ConversationFactory.withModality(boolean modal)
Sets the modality of allConversation
s created by this factory.ConversationFactory.withPrefix(ConversationPrefix prefix)
Sets theConversationPrefix
that prepends all output from all generated conversations.ConversationFactory.withTimeout(int timeoutSeconds)
Sets the number of inactive seconds to wait before automatically abandoning all generated conversations.