Pass plugin when forming initial prompts

This commit is contained in:
PikaMug 2020-04-15 22:00:59 -04:00
parent 609a132c0b
commit c1be18661d
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ public class QuestFactory implements ConversationAbandonedListener {
this.plugin = plugin;
// Ensure to initialize convoCreator last so that 'this' is fully initialized before it is passed
this.convoCreator = new ConversationFactory(plugin).withModality(false).withLocalEcho(false)
.withFirstPrompt(new QuestMenuPrompt(null)).withTimeout(3600)
.withFirstPrompt(new QuestMenuPrompt(new ConversationContext(plugin, null, null))).withTimeout(3600)
.thatExcludesNonPlayersWithMessage("Console may not perform this operation!")
.addConversationAbandonedListener(this);
}

View File

@ -64,7 +64,7 @@ public class ActionFactory implements ConversationAbandonedListener {
this.plugin = plugin;
// Ensure to initialize convoCreator last so that 'this' is fully initialized before it is passed
this.convoCreator = new ConversationFactory(plugin).withModality(false).withLocalEcho(false)
.withFirstPrompt(new ActionMenuPrompt(null)).withTimeout(3600)
.withFirstPrompt(new ActionMenuPrompt(new ConversationContext(plugin, null, null))).withTimeout(3600)
.thatExcludesNonPlayersWithMessage("Console may not perform this operation!")
.addConversationAbandonedListener(this);
}