mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-22 10:36:09 +01:00
Fix quest edit select prompt (#1924)
* Add Citizens dependency check * Undo formatting
This commit is contained in:
parent
746f294628
commit
89922c3255
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user