From 9538fba9b7865cd16cd7a3015d2a4841f7152c03 Mon Sep 17 00:00:00 2001 From: HappyPikachu Date: Thu, 12 Mar 2015 23:26:39 -0400 Subject: [PATCH] Check for Citizens before loading config values --- src/main/java/me/blackvein/quests/Quests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/blackvein/quests/Quests.java b/src/main/java/me/blackvein/quests/Quests.java index 4ca354020..a5c0d6316 100644 --- a/src/main/java/me/blackvein/quests/Quests.java +++ b/src/main/java/me/blackvein/quests/Quests.java @@ -2572,7 +2572,7 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener, skipQuestProcess("Quest block \'" + questName + "\' is missing " + RED + "name:"); } - if (config.contains("quests." + questName + ".npc-giver-id")) { + if (citizens != null && config.contains("quests." + questName + ".npc-giver-id")) { if (CitizensAPI.getNPCRegistry().getById(config.getInt("quests." + questName + ".npc-giver-id")) != null) { quest.npcStart = CitizensAPI.getNPCRegistry().getById(config.getInt("quests." + questName + ".npc-giver-id"));