mirror of
https://github.com/PikaMug/Quests.git
synced 2025-02-12 18:41:22 +01:00
Block start must respect ask-confirmation when disabled
This commit is contained in:
parent
27463d8be9
commit
93263fa1a2
@ -325,14 +325,18 @@ public class PlayerListener implements Listener {
|
||||
}
|
||||
}
|
||||
quester.setQuestToTake(q.getName());
|
||||
final String s = ChatColor.GOLD + "- " + ChatColor.DARK_PURPLE
|
||||
+ quester.getQuestToTake() + ChatColor.GOLD + " -\n" + "\n"
|
||||
+ ChatColor.RESET + plugin.getQuest(quester.getQuestToTake())
|
||||
.getDescription() + "\n";
|
||||
for (final String msg : s.split("<br>")) {
|
||||
player.sendMessage(msg);
|
||||
if (!plugin.getSettings().canAskConfirmation()) {
|
||||
quester.takeQuest(q, false);
|
||||
} else {
|
||||
final String s = ChatColor.GOLD + "- " + ChatColor.DARK_PURPLE
|
||||
+ quester.getQuestToTake() + ChatColor.GOLD + " -\n" + "\n"
|
||||
+ ChatColor.RESET + plugin.getQuest(quester.getQuestToTake())
|
||||
.getDescription() + "\n";
|
||||
for (final String msg : s.split("<br>")) {
|
||||
player.sendMessage(msg);
|
||||
}
|
||||
plugin.getConversationFactory().buildConversation(player).begin();
|
||||
}
|
||||
plugin.getConversationFactory().buildConversation(player).begin();
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user