Minecraft-Server-Launcher/Main.java
2018-01-18 23:18:45 +01:00

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');
}
}
}
}