Add startupDelay in ServerPropertyFile

This commit is contained in:
Marc Baloup 2020-02-02 17:00:58 +01:00
parent dba1916de7
commit c510c0197e

View File

@ -19,6 +19,7 @@ public class ServerPropertyFile {
private String javaArgs = "";
private String MinecraftArgs = "";
private String jarFile = "";
private long startupDelay = 0;
private boolean run = true;
public ServerPropertyFile(File f) {
@ -43,6 +44,7 @@ public class ServerPropertyFile {
MinecraftArgs = dataFile.MinecraftArgs;
jarFile = dataFile.jarFile;
run = dataFile.run;
startupDelay = dataFile.startupDelay;
return true;
} catch(JsonSyntaxException e) {
@ -91,6 +93,10 @@ public class ServerPropertyFile {
public boolean isRun() {
return run;
}
public long getStartupDelay() {
return startupDelay;
}
public void setName(String n) {
if (n == null || !n.matches("^[a-zA-Z]$")) throw new IllegalArgumentException();