Some changes before getting rid of ConnectionIntent

This commit is contained in:
Jaime Martinez Rincon 2017-04-23 23:54:08 +02:00
parent 23ed34dbf7
commit c15518898c
4 changed files with 3 additions and 6 deletions

View File

@ -39,7 +39,7 @@ public class ConfigEntries implements ConfigEntryHolder {
public static final ConfigEntry<Boolean> REDIS_BUNGEE_ENABLED = new ConfigEntry<>(0, "settings.redis-bungee", false);
public static final ConfigEntry<Boolean> ASSIGN_TARGETS_ENABLED = new ConfigEntry<>(0, "settings.assign-targets", false);
public static final ConfigEntry<Boolean> FALLBACK_PRINCIPAL_ENABLED = new ConfigEntry<>(0, "settings.fallback-principal", true);
public static final ConfigEntry<Boolean> SERVERS_UPDATE = new ConfigEntry<>(0, "settings.servers-update", true);
public static final ConfigEntry<Boolean> SERVERS_UPDATE = new ConfigEntry<>(0, "settings.servers-update", false);
public static final ConfigEntry<String> CONNECTING_MESSAGE = new ConfigEntry<>(0, "settings.messages.connecting-server", null);
public static final ConfigEntry<String> FAILURE_MESSAGE = new ConfigEntry<>(0, "settings.messages.misc-failure", null);

View File

@ -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<ServerInfo> servers = new ArrayList<>();
servers.addAll(section.getServers());

View File

@ -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()
));
}

View File

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