From b5bb35b043b67f0ba0b4b6aeac3b4718493d3881 Mon Sep 17 00:00:00 2001 From: PikaMug <2267126+PikaMug@users.noreply.github.com> Date: Fri, 20 Mar 2020 03:20:10 -0400 Subject: [PATCH] Skip loading region-start if WorldGuard is not enabled, fixes #1129 --- main/src/main/java/me/blackvein/quests/Quests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/src/main/java/me/blackvein/quests/Quests.java b/main/src/main/java/me/blackvein/quests/Quests.java index 3df8fe2bd..952461612 100644 --- a/main/src/main/java/me/blackvein/quests/Quests.java +++ b/main/src/main/java/me/blackvein/quests/Quests.java @@ -1273,7 +1273,8 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener skipQuestProcess("block-start has invalid location format", questKey); } } - if (config.contains("quests." + questKey + ".region")) { + if (config.contains("quests." + questKey + ".region") + && getDependencies().getWorldGuardApi() != null) { String region = config.getString("quests." + questKey + ".region"); boolean exists = false; for (World world : getServer().getWorlds()) {