21 lines
496 B
Java
21 lines
496 B
Java
import java.lang.Runtime;
|
|
import java.util.ArrayList;
|
|
public class Main {
|
|
public ArrayList<Server> servers;
|
|
|
|
public static void main(String[] args) {
|
|
|
|
}
|
|
|
|
public static void startServers() {
|
|
for (Server server : servers) {
|
|
if (server.isEnabled()) {
|
|
String path = server.getPath();
|
|
ServerType = this.type;
|
|
|
|
Runtime rt = Runtime.getRuntime();
|
|
Process pr = rt.exec("java -Xmx" + $MemoryValue + " -Xms512M -jar " + '"' + $loc + "\\" + $Type + '" nogui');
|
|
}
|
|
}
|
|
}
|
|
} |