diff --git a/src/net/knarcraft/serverlauncher/server/Server.java b/src/net/knarcraft/serverlauncher/server/Server.java index fbedc83..a385668 100644 --- a/src/net/knarcraft/serverlauncher/server/Server.java +++ b/src/net/knarcraft/serverlauncher/server/Server.java @@ -6,6 +6,7 @@ import net.knarcraft.serverlauncher.profile.Profile; import java.io.*; import java.nio.file.*; import java.util.ArrayList; +import java.util.concurrent.TimeUnit; import static net.knarcraft.serverlauncher.Shared.downloadFile; import static net.knarcraft.serverlauncher.Shared.readFile; @@ -259,6 +260,12 @@ public class Server { return false; } } + try { + Profile.getGUI().setStatus("Delaying startup"); + TimeUnit.SECONDS.sleep(Profile.getCurrent().getDelayStartup()); + } catch (InterruptedException e) { + e.printStackTrace(); + } try { ProcessBuilder builder; if (Profile.getCurrent().getDownloadJars() && !type.getName().equals("Custom")) {