Finishes custom java path
Adds missing menu items Adds menu item functionality
This commit is contained in:
@ -94,26 +94,44 @@ public class ServerLauncherController {
|
||||
/**
|
||||
* Gets the command for running java
|
||||
*
|
||||
* <p>To play on the newest version of Minecraft, this needs to be JDK 16. Can be just "java" or a file path.</p>
|
||||
*
|
||||
* @return <p>The command for running java</p>
|
||||
* @return <p>The command for running Java</p>
|
||||
*/
|
||||
public String getJavaCommand() {
|
||||
return javaCommand;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the command for running older versions of java
|
||||
* Gets the command for running older versions of Java
|
||||
*
|
||||
* <p>The command used to run older minecraft server versions. JRE 8 should probably work.
|
||||
* Can be just "java" or a file path.</p>
|
||||
*
|
||||
* @return <p>The command for running older versions of java</p>
|
||||
* @return <p>The command for running older versions of Java</p>
|
||||
*/
|
||||
public String getOldJavaCommand() {
|
||||
return oldJavaCommand;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the command for running Java
|
||||
*
|
||||
* <p>To play on the newest version of Minecraft, this needs to be JDK 16. Can be just "java" or a file path.</p>
|
||||
*
|
||||
* @param javaCommand <p>The command used for running Java</p>
|
||||
*/
|
||||
public void setJavaCommand(String javaCommand) {
|
||||
this.javaCommand = javaCommand;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the command for running older versions of java
|
||||
*
|
||||
* @param oldJavaCommand <p>The command used for running older versions of Java</p>
|
||||
*/
|
||||
public void setOldJavaCommand(String oldJavaCommand) {
|
||||
this.oldJavaCommand = oldJavaCommand;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
int guiWidth;
|
||||
|
Reference in New Issue
Block a user