Skip to content

Commit c155188

Browse files
committed
Some changes before getting rid of ConnectionIntent
1 parent 23ed34d commit c155188

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

src/main/java/me/jaimemartz/lobbybalancer/configuration/ConfigEntries.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class ConfigEntries implements ConfigEntryHolder {
3939
public static final ConfigEntry<Boolean> REDIS_BUNGEE_ENABLED = new ConfigEntry<>(0, "settings.redis-bungee", false);
4040
public static final ConfigEntry<Boolean> ASSIGN_TARGETS_ENABLED = new ConfigEntry<>(0, "settings.assign-targets", false);
4141
public static final ConfigEntry<Boolean> FALLBACK_PRINCIPAL_ENABLED = new ConfigEntry<>(0, "settings.fallback-principal", true);
42-
public static final ConfigEntry<Boolean> SERVERS_UPDATE = new ConfigEntry<>(0, "settings.servers-update", true);
42+
public static final ConfigEntry<Boolean> SERVERS_UPDATE = new ConfigEntry<>(0, "settings.servers-update", false);
4343

4444
public static final ConfigEntry<String> CONNECTING_MESSAGE = new ConfigEntry<>(0, "settings.messages.connecting-server", null);
4545
public static final ConfigEntry<String> FAILURE_MESSAGE = new ConfigEntry<>(0, "settings.messages.misc-failure", null);

src/main/java/me/jaimemartz/lobbybalancer/listener/ServerKickListener.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,6 @@ public void onKick(ServerKickEvent event) {
103103
try {
104104
ServerSection section = callable.call();
105105
if (section != null) {
106-
//Do not try to reconnect to the server we are kicked from
107-
//This can happen when the sections are working on recursive mode (with rules)
108-
//Example: You are kicked to a server, you go to another server in the same section
109106
List<ServerInfo> servers = new ArrayList<>();
110107
servers.addAll(section.getServers());
111108

src/main/java/me/jaimemartz/lobbybalancer/ping/StatusManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ private void update(LobbyBalancer plugin, ServerInfo server) {
5858
}
5959

6060
if (ConfigEntries.SERVER_CHECK_PRINT_INFO.get()) {
61-
plugin.getLogger().info(String.format("Tracking server %s, status: [Description: \"%s\", Online Players: %s, Maximum Players: %s, Accessible: %s]",
61+
plugin.getLogger().info(String.format("Updated server %s, status: [Description: \"%s\", Online Players: %s, Maximum Players: %s, Accessible: %s]",
6262
server.getName(), status.getDescription(), status.getOnline(), status.getMaximum(), status.isAccessible()
6363
));
6464
}

src/main/resources/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ settings:
106106
fallback-principal: true
107107

108108
# This will update the recognized servers every minute
109-
servers-update: true
109+
servers-update: false
110110

111111
# Comment a message to disable it
112112
messages:

0 commit comments

Comments
 (0)