Simple case with the API

Conversation manipulation

Start a conversation:

// Get the manager
ConversationManager conversationManager = ConversationManager.getInstance();

// Get the conversation
Conversation conversation = conversationManager.getConversation("conversationId");

// Start a conversation
ActiveConversation activeConv = conversation.startNewConversation(player);

Check if player is currently conversing

// Get the manager
ConversationManager conversationManager = ConversationManager.getInstance();

// Check if player in conversation
if (conversationManager.inConversation(player)) {
    // Do something
}

Bukkit Events

Get information

In some cases, you will need to get information about the configuration. For example when you need to send an instruction message to the player. Example "Sneak to end the conversation". In the config, you have an option to specify if the message will be sent

Last updated