Implemented the autoStart feature into the ServerManager

This commit is contained in:
2024-02-13 18:51:14 +01:00
parent 36b59f8316
commit 677bde3c82
3 changed files with 39 additions and 1 deletions

View File

@ -42,8 +42,10 @@ public class ServerManager {
servers.forEach(server -> {
if (server.getStatus() == ServerStatus.ONLINE) return;
startServer(server);
if (server.getConfiguration().isAutoStart()) startServer(server);
});
LOG.info("All servers have been started");
}
/**