From 11b08d82915e94ec458c3f1906197081d5ec43b9 Mon Sep 17 00:00:00 2001 From: YuTian <2953516620@qq.com> Date: Mon, 22 Jul 2024 16:54:06 +0800 Subject: [PATCH] v2.5.1 --- src/main/java/com/io/yutian/aulib/redis/RedisIO.java | 6 +++--- src/main/resources/plugin.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/io/yutian/aulib/redis/RedisIO.java b/src/main/java/com/io/yutian/aulib/redis/RedisIO.java index 02d1c8c..fd32e4e 100644 --- a/src/main/java/com/io/yutian/aulib/redis/RedisIO.java +++ b/src/main/java/com/io/yutian/aulib/redis/RedisIO.java @@ -22,9 +22,9 @@ public class RedisIO implements IJedisGetter { plugin.saveResource("redis.yml", false); } FileConfiguration configuration = YamlConfiguration.loadConfiguration(file); - String redisServer = configuration.getString("redis-server", "localhost"); - int redisPort = configuration.getInt("redis-port", 6379); - String redisPassword = configuration.getString("redis-password"); + String redisServer = configuration.getString("server", "localhost"); + int redisPort = configuration.getInt("port", 6379); + String redisPassword = configuration.getString("password"); if (redisPassword != null && (redisPassword.isEmpty() || redisPassword.equals("none"))) { redisPassword = null; } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 1b084e4..cb49f25 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: AuLib main: com.io.yutian.aulib.AuLib -version: 2.5 +version: 2.5.1 api-version: 1.18 author: SuperYuTian \ No newline at end of file