Skip loading region-start if WorldGuard is not enabled, fixes #1129

This commit is contained in:
PikaMug 2020-03-20 03:20:10 -04:00
parent edfdf63077
commit b5bb35b043

View File

@ -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()) {