Fix quest edit select prompt (#1924)

* Add Citizens dependency check

* Undo formatting
This commit is contained in:
Maximilian Dorn 2022-04-11 05:59:05 +02:00 committed by GitHub
parent 746f294628
commit 89922c3255
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,9 +149,11 @@ public class BukkitQuestFactory implements QuestFactory, ConversationAbandonedLi
context.setSessionData(CK.Q_NAME, q.getName());
context.setSessionData(CK.Q_ASK_MESSAGE, q.getDescription());
context.setSessionData(CK.Q_FINISH_MESSAGE, q.getFinished());
if(plugin.getDependencies().getCitizens() != null) {
if (q.getNpcStart() != null) {
context.setSessionData(CK.Q_START_NPC, q.getNpcStart().getId());
}
}
context.setSessionData(CK.Q_START_BLOCK, q.getBlockStart());
if (q.getInitialAction() != null) {
context.setSessionData(CK.Q_INITIAL_EVENT, q.getInitialAction().getName());