Skip to content

Commit 52864d6

Browse files
authored
326 ordering bug (#364)
* Possible fix for #326 * Add a ConversationAbandonedListener
1 parent 12f3933 commit 52864d6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/world/bentobox/challenges/panel/ConversationUtils.java

+3
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ public String getPromptText(@NotNull ConversationContext conversationContext)
119119
withFirstPrompt(confirmationPrompt).
120120
withLocalEcho(false).
121121
withTimeout(90).
122+
// Use null value in consumer to detect if user has abandoned conversation.
123+
addConversationAbandonedListener(ConversationUtils.getAbandonListener(consumer, user))
124+
.
122125
buildConversation(user.getPlayer()).
123126
begin();
124127
}

0 commit comments

Comments
 (0)