9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-22 16:39:36 +00:00
This commit is contained in:
Xiao-MoMi
2022-07-16 18:04:55 +08:00
parent 16a1aaf4f2
commit 79391c3b66

View File

@@ -149,20 +149,19 @@ public class ConfigReader {
}else { }else {
referenceWorld = config.getStringList("config.whitelist-worlds").get(0); referenceWorld = config.getStringList("config.whitelist-worlds").get(0);
} }
}else {
//农作物生长的白名单世界
worlds = new ArrayList<>();
worldNames = config.getStringList("config.whitelist-worlds");
worldNames.forEach(worldName -> {
World world = Bukkit.getWorld(worldName);
if (world == null){
AdventureManager.consoleMessage("<red>[CustomCrops] 世界" + worldName + "" + "不存在");
}else {
worlds.add(world);
}
});
} }
//农作物生长的白名单世界
worlds = new ArrayList<>();
worldNames = config.getStringList("config.whitelist-worlds");
worldNames.forEach(worldName -> {
World world = Bukkit.getWorld(worldName);
if (world == null){
AdventureManager.consoleMessage("<red>[CustomCrops] 世界" + worldName + "" + "不存在");
}else {
worlds.add(world);
}
});
//处理插件兼容性 //处理插件兼容性
integration = new ArrayList<>(); integration = new ArrayList<>();
if(config.getBoolean("config.integration.Residence",false)){ if(config.getBoolean("config.integration.Residence",false)){