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 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) {
|
||||
@ -92,6 +94,10 @@ public class ServerPropertyFile {
|
||||
return run;
|
||||
}
|
||||
|
||||
public long getStartupDelay() {
|
||||
return startupDelay;
|
||||
}
|
||||
|
||||
public void setName(String n) {
|
||||
if (n == null || !n.matches("^[a-zA-Z]$")) throw new IllegalArgumentException();
|
||||
name = n;
|
||||
|
Loading…
Reference in New Issue
Block a user