mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-26 02:58:00 +01:00
Simplify superfluous confirmation code
This commit is contained in:
parent
afaeb8e24e
commit
b1ced220d4
@ -108,7 +108,7 @@ public class QuestOfferPrompt extends StringPrompt {
|
|||||||
player.sendMessage(msg);
|
player.sendMessage(msg);
|
||||||
}
|
}
|
||||||
if (!plugin.getSettings().canAskConfirmation()) {
|
if (!plugin.getSettings().canAskConfirmation()) {
|
||||||
plugin.getQuester(player.getUniqueId()).takeQuest(plugin.getQuest(plugin.getQuester(player.getUniqueId()).getQuestToTake()), false);
|
quester.takeQuest(q, false);
|
||||||
} else {
|
} else {
|
||||||
plugin.getConversationFactory().buildConversation((Conversable) player).begin();
|
plugin.getConversationFactory().buildConversation((Conversable) player).begin();
|
||||||
}
|
}
|
||||||
@ -138,7 +138,7 @@ public class QuestOfferPrompt extends StringPrompt {
|
|||||||
player.sendMessage(msg);
|
player.sendMessage(msg);
|
||||||
}
|
}
|
||||||
if (!plugin.getSettings().canAskConfirmation()) {
|
if (!plugin.getSettings().canAskConfirmation()) {
|
||||||
plugin.getQuester(player.getUniqueId()).takeQuest(plugin.getQuest(plugin.getQuester(player.getUniqueId()).getQuestToTake()), false);
|
quester.takeQuest(q, false);
|
||||||
} else {
|
} else {
|
||||||
plugin.getConversationFactory().buildConversation((Conversable) player).begin();
|
plugin.getConversationFactory().buildConversation((Conversable) player).begin();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user