mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2025-04-20 01:27:07 +00:00
random uuid was not shown in logs
This commit is contained in:
parent
4757a49bdc
commit
8a64ef59f0
@ -444,13 +444,11 @@ public final class RedisBungee extends Plugin {
|
|||||||
getLogger().info("Generated server id " + genId + " and saving it to config.");
|
getLogger().info("Generated server id " + genId + " and saving it to config.");
|
||||||
configuration.set("server-id", genId);
|
configuration.set("server-id", genId);
|
||||||
ConfigurationProvider.getProvider(YamlConfiguration.class).save(configuration, new File(getDataFolder(), "config.yml"));
|
ConfigurationProvider.getProvider(YamlConfiguration.class).save(configuration, new File(getDataFolder(), "config.yml"));
|
||||||
} else {
|
|
||||||
getLogger().info("Loaded server id " + serverId + '.');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (configuration.getBoolean("use-random-id-string", false)) {
|
if (configuration.getBoolean("use-random-id-string", false)) {
|
||||||
serverId = configuration.getString("server-id") + "-" + randomUUID;
|
serverId = configuration.getString("server-id") + "-" + randomUUID;
|
||||||
}
|
}
|
||||||
|
getLogger().info("Loaded server id " + serverId + '.');
|
||||||
|
|
||||||
if (redisServer != null && !redisServer.isEmpty()) {
|
if (redisServer != null && !redisServer.isEmpty()) {
|
||||||
final String finalRedisPassword = redisPassword;
|
final String finalRedisPassword = redisPassword;
|
||||||
|
Loading…
Reference in New Issue
Block a user