mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-28 03:57:37 +01:00
Skip loading region-start if WorldGuard is not enabled, fixes #1129
This commit is contained in:
parent
edfdf63077
commit
b5bb35b043
@ -1273,7 +1273,8 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
|
|||||||
skipQuestProcess("block-start has invalid location format", questKey);
|
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");
|
String region = config.getString("quests." + questKey + ".region");
|
||||||
boolean exists = false;
|
boolean exists = false;
|
||||||
for (World world : getServer().getWorlds()) {
|
for (World world : getServer().getWorlds()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user