diff --git a/src/main/java/me/jaimemartz/lobbybalancer/configuration/ConfigEntries.java b/src/main/java/me/jaimemartz/lobbybalancer/configuration/ConfigEntries.java index 21f3efb..19ad7cb 100644 --- a/src/main/java/me/jaimemartz/lobbybalancer/configuration/ConfigEntries.java +++ b/src/main/java/me/jaimemartz/lobbybalancer/configuration/ConfigEntries.java @@ -39,7 +39,7 @@ public class ConfigEntries implements ConfigEntryHolder { public static final ConfigEntry REDIS_BUNGEE_ENABLED = new ConfigEntry<>(0, "settings.redis-bungee", false); public static final ConfigEntry ASSIGN_TARGETS_ENABLED = new ConfigEntry<>(0, "settings.assign-targets", false); public static final ConfigEntry FALLBACK_PRINCIPAL_ENABLED = new ConfigEntry<>(0, "settings.fallback-principal", true); - public static final ConfigEntry SERVERS_UPDATE = new ConfigEntry<>(0, "settings.servers-update", true); + public static final ConfigEntry SERVERS_UPDATE = new ConfigEntry<>(0, "settings.servers-update", false); public static final ConfigEntry CONNECTING_MESSAGE = new ConfigEntry<>(0, "settings.messages.connecting-server", null); public static final ConfigEntry FAILURE_MESSAGE = new ConfigEntry<>(0, "settings.messages.misc-failure", null); diff --git a/src/main/java/me/jaimemartz/lobbybalancer/listener/ServerKickListener.java b/src/main/java/me/jaimemartz/lobbybalancer/listener/ServerKickListener.java index f0def5a..21af1d2 100644 --- a/src/main/java/me/jaimemartz/lobbybalancer/listener/ServerKickListener.java +++ b/src/main/java/me/jaimemartz/lobbybalancer/listener/ServerKickListener.java @@ -103,9 +103,6 @@ public class ServerKickListener implements Listener { try { ServerSection section = callable.call(); if (section != null) { - //Do not try to reconnect to the server we are kicked from - //This can happen when the sections are working on recursive mode (with rules) - //Example: You are kicked to a server, you go to another server in the same section List servers = new ArrayList<>(); servers.addAll(section.getServers()); diff --git a/src/main/java/me/jaimemartz/lobbybalancer/ping/StatusManager.java b/src/main/java/me/jaimemartz/lobbybalancer/ping/StatusManager.java index c39a1a8..34195b4 100644 --- a/src/main/java/me/jaimemartz/lobbybalancer/ping/StatusManager.java +++ b/src/main/java/me/jaimemartz/lobbybalancer/ping/StatusManager.java @@ -58,7 +58,7 @@ public class StatusManager { } if (ConfigEntries.SERVER_CHECK_PRINT_INFO.get()) { - plugin.getLogger().info(String.format("Tracking server %s, status: [Description: \"%s\", Online Players: %s, Maximum Players: %s, Accessible: %s]", + plugin.getLogger().info(String.format("Updated server %s, status: [Description: \"%s\", Online Players: %s, Maximum Players: %s, Accessible: %s]", server.getName(), status.getDescription(), status.getOnline(), status.getMaximum(), status.isAccessible() )); } diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index d964848..135ab3a 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -106,7 +106,7 @@ settings: fallback-principal: true # This will update the recognized servers every minute - servers-update: true + servers-update: false # Comment a message to disable it messages: