v2.5.1
This commit is contained in:
parent
29b252565f
commit
11b08d8291
|
@ -22,9 +22,9 @@ public class RedisIO implements IJedisGetter {
|
||||||
plugin.saveResource("redis.yml", false);
|
plugin.saveResource("redis.yml", false);
|
||||||
}
|
}
|
||||||
FileConfiguration configuration = YamlConfiguration.loadConfiguration(file);
|
FileConfiguration configuration = YamlConfiguration.loadConfiguration(file);
|
||||||
String redisServer = configuration.getString("redis-server", "localhost");
|
String redisServer = configuration.getString("server", "localhost");
|
||||||
int redisPort = configuration.getInt("redis-port", 6379);
|
int redisPort = configuration.getInt("port", 6379);
|
||||||
String redisPassword = configuration.getString("redis-password");
|
String redisPassword = configuration.getString("password");
|
||||||
if (redisPassword != null && (redisPassword.isEmpty() || redisPassword.equals("none"))) {
|
if (redisPassword != null && (redisPassword.isEmpty() || redisPassword.equals("none"))) {
|
||||||
redisPassword = null;
|
redisPassword = null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: AuLib
|
name: AuLib
|
||||||
main: com.io.yutian.aulib.AuLib
|
main: com.io.yutian.aulib.AuLib
|
||||||
version: 2.5
|
version: 2.5.1
|
||||||
api-version: 1.18
|
api-version: 1.18
|
||||||
author: SuperYuTian
|
author: SuperYuTian
|
Loading…
Reference in New Issue
Block a user