mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2025-12-23 00:49:33 +00:00
1.5.25
This commit is contained in:
@@ -654,4 +654,14 @@ public class ConfigReader {
|
||||
boneMealSource = net.kyori.adventure.sound.Sound.Source.valueOf(config.getString("bonemeal.type","player").toUpperCase());
|
||||
}
|
||||
}
|
||||
|
||||
public static void tryEnableJedis(){
|
||||
YamlConfiguration configuration = ConfigReader.getConfig("redis.yml");
|
||||
if (configuration.getBoolean("redis.enable")){
|
||||
JedisUtil.initializeRedis(configuration);
|
||||
JedisUtil.useRedis = true;
|
||||
}else {
|
||||
JedisUtil.useRedis = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user