Skip to content

Commit

Permalink
Remove deprecated confirmation setting, part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
PikaMug committed Jan 11, 2023
1 parent 5261576 commit 60cefda
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public Prompt acceptInput(final ConversationContext context, final String input)
for (final String msg : extracted(plugin, quester).split("<br>")) {
player.sendMessage(msg);
}
if (!plugin.getSettings().canAskConfirmation()) {
if (!plugin.getSettings().canConfirmAccept()) {
quester.takeQuest(q, false);
} else {
plugin.getConversationFactory().buildConversation(player).begin();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public void onNPCRightClick(final NPCRightClickEvent event) {
final IQuest q = npcQuests.get(0);
if (quester.canAcceptOffer(q, true)) {
quester.setQuestIdToTake(q.getId());
if (!plugin.getSettings().canAskConfirmation()) {
if (!plugin.getSettings().canConfirmAccept()) {
quester.takeQuest(q, false);
} else {
if (q.getGUIDisplay() != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ public void onPlayerInteract(final PlayerInteractEvent event) {
}
}
quester.setQuestIdToTake(q.getId());
if (!plugin.getSettings().canAskConfirmation()) {
if (!plugin.getSettings().canConfirmAccept()) {
quester.takeQuest(q, false);
} else {
final IQuest quest = plugin.getQuestByIdTemp(quester.getQuestIdToTake());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ public void onNPCInteract(final NPCInteractEvent event) {
final IQuest q = npcQuests.get(0);
if (quester.canAcceptOffer(q, true)) {
quester.setQuestIdToTake(q.getId());
if (!plugin.getSettings().canAskConfirmation()) {
if (!plugin.getSettings().canConfirmAccept()) {
quester.takeQuest(q, false);
} else {
if (q.getGUIDisplay() != null) {
Expand Down

0 comments on commit 60cefda

Please sign in to comment.