mirror of
https://github.com/PikaMug/Quests.git
synced 2024-09-19 19:01:01 +02:00
Pass plugin when forming initial prompts
This commit is contained in:
parent
609a132c0b
commit
c1be18661d
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user