Add unfinished gui
This commit is contained in:
@ -16,9 +16,7 @@ import java.util.ArrayList;
|
||||
* @since 0.0.0.1
|
||||
*/
|
||||
public class Server {
|
||||
/**
|
||||
* Available ram sizes. For GUI dropdown
|
||||
*/
|
||||
/** Available ram sizes. For GUI dropdown */
|
||||
private static final String[] ramList = {"512M", "1G", "2G", "3G", "4G", "5G", "6G", "7G", "8G", "9G", "10G", "11G", "12G", "13G", "14G", "15G", "16G"};
|
||||
private static ArrayList<Server> servers = new ArrayList<>();
|
||||
|
||||
@ -56,6 +54,9 @@ public class Server {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return A representation of the name of a jarfile.
|
||||
*/
|
||||
private String getType() {
|
||||
return this.type.getName() + this.serverVersion + ".jar";
|
||||
}
|
||||
@ -124,7 +125,6 @@ public class Server {
|
||||
System.out.println("File was not found.");
|
||||
return;
|
||||
}
|
||||
//Runtime rt = Runtime.getRuntime();
|
||||
try {
|
||||
ProcessBuilder builder = new ProcessBuilder("java", "-Xmx" + this.maxRam, "-Xms512M", "-Djline.terminal=jline.UnsupportedTerminal", "-Dcom.mojang.eula.agree=true", "-jar", "\"" + this.path + "\\" + this.getType() + "\"");
|
||||
builder.directory(new File(this.path));
|
||||
|
Reference in New Issue
Block a user