mirror of
https://github.com/BGHDDevelopment/PlayerBalancer.git
synced 2024-11-23 11:15:30 +01:00
Added back the print info to server check
This commit is contained in:
parent
55eac0dedd
commit
23ed34dbf7
@ -193,6 +193,6 @@ public class LobbyBalancer extends Plugin {
|
||||
}
|
||||
|
||||
public Configuration getConfigHandle() {
|
||||
return factory.get("config.yml").getHandle();
|
||||
return factory.get(0).getHandle();
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user