From c510c0197ec2284291fb43a21caa553b8267a56a Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Sun, 2 Feb 2020 17:00:58 +0100 Subject: [PATCH] Add startupDelay in ServerPropertyFile --- src/main/java/fr/pandacube/util/ServerPropertyFile.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/fr/pandacube/util/ServerPropertyFile.java b/src/main/java/fr/pandacube/util/ServerPropertyFile.java index e56fb77..d2a9d76 100644 --- a/src/main/java/fr/pandacube/util/ServerPropertyFile.java +++ b/src/main/java/fr/pandacube/util/ServerPropertyFile.java @@ -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();