Added back the print info to server check

This commit is contained in:
Jaime Martinez Rincon 2017-04-23 22:50:11 +02:00
parent 55eac0dedd
commit 23ed34dbf7
2 changed files with 7 additions and 1 deletions

View File

@ -193,6 +193,6 @@ public class LobbyBalancer extends Plugin {
}
public Configuration getConfigHandle() {
return factory.get("config.yml").getHandle();
return factory.get(0).getHandle();
}
}

View File

@ -57,6 +57,12 @@ public class StatusManager {
status = new StatusInfo();
}
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]",
server.getName(), status.getDescription(), status.getOnline(), status.getMaximum(), status.isAccessible()
));
}
status.setOutdated(false);
storage.put(server, status);
}, plugin);