Delay startup actually does something
This commit is contained in:
parent
16edbfd44c
commit
3e7c69d7a2
@ -6,6 +6,7 @@ import net.knarcraft.serverlauncher.profile.Profile;
|
|||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.nio.file.*;
|
import java.nio.file.*;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import static net.knarcraft.serverlauncher.Shared.downloadFile;
|
import static net.knarcraft.serverlauncher.Shared.downloadFile;
|
||||||
import static net.knarcraft.serverlauncher.Shared.readFile;
|
import static net.knarcraft.serverlauncher.Shared.readFile;
|
||||||
@ -259,6 +260,12 @@ public class Server {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
|
Profile.getGUI().setStatus("Delaying startup");
|
||||||
|
TimeUnit.SECONDS.sleep(Profile.getCurrent().getDelayStartup());
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
ProcessBuilder builder;
|
ProcessBuilder builder;
|
||||||
if (Profile.getCurrent().getDownloadJars() && !type.getName().equals("Custom")) {
|
if (Profile.getCurrent().getDownloadJars() && !type.getName().equals("Custom")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user