2
0
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:
mohammed jasem alaajel 2021-06-25 07:19:21 +04:00
parent 4757a49bdc
commit 8a64ef59f0

View File

@ -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;