Add startupDelay in ServerPropertyFile
This commit is contained in:
parent
dba1916de7
commit
c510c0197e
@ -19,6 +19,7 @@ public class ServerPropertyFile {
|
|||||||
private String javaArgs = "";
|
private String javaArgs = "";
|
||||||
private String MinecraftArgs = "";
|
private String MinecraftArgs = "";
|
||||||
private String jarFile = "";
|
private String jarFile = "";
|
||||||
|
private long startupDelay = 0;
|
||||||
private boolean run = true;
|
private boolean run = true;
|
||||||
|
|
||||||
public ServerPropertyFile(File f) {
|
public ServerPropertyFile(File f) {
|
||||||
@ -43,6 +44,7 @@ public class ServerPropertyFile {
|
|||||||
MinecraftArgs = dataFile.MinecraftArgs;
|
MinecraftArgs = dataFile.MinecraftArgs;
|
||||||
jarFile = dataFile.jarFile;
|
jarFile = dataFile.jarFile;
|
||||||
run = dataFile.run;
|
run = dataFile.run;
|
||||||
|
startupDelay = dataFile.startupDelay;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} catch(JsonSyntaxException e) {
|
} catch(JsonSyntaxException e) {
|
||||||
@ -92,6 +94,10 @@ public class ServerPropertyFile {
|
|||||||
return run;
|
return run;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public long getStartupDelay() {
|
||||||
|
return startupDelay;
|
||||||
|
}
|
||||||
|
|
||||||
public void setName(String n) {
|
public void setName(String n) {
|
||||||
if (n == null || !n.matches("^[a-zA-Z]$")) throw new IllegalArgumentException();
|
if (n == null || !n.matches("^[a-zA-Z]$")) throw new IllegalArgumentException();
|
||||||
name = n;
|
name = n;
|
||||||
|
Loading…
Reference in New Issue
Block a user