I’m clearly missing something, I just can’t quite seem to nail it down. The MineOS GUI provides a java_tweaks field, whose values are added to the command line, in front of the “java -jar …”
For example, I’m using “-Dlog4j.configurationFile=log4j2.xml”, which then is translated to:
What I want to do is add “–forceUpgrade” and possibly “-nogui”, so that they appear at the very end, like this:
/usr/bin/java -server -Xmx1536M -Xms1536M -Dlog4j.configurationFile=log4j2.xml -jar /var/games/minecraft/servers/mcserver/minecraft.jar --forceUpgrade"
I want to add these options to the very end, because otherwise those options cause the server to not start at all.
The GUI doesn’t seem to let you specify this, and editing the server.config directly doesn’t seem to change the behavior. What am I missing here?
I’m just speculating, but I believe the leading hyphen - might even force arguments to be parsed by java rather than as an argument to -jar. If this is the case, it would explain why vanilla minecraft pushes simply nogui.
Sorry for the delay in replying - I don’t have a “Additional Jar Arguments” field in either the server.config or server.properties page. I’m running 0.6.0, webui version 6d714d1. I tried updating, but the instructions ( https://minecraft.codeemo.com/mineoswiki/index.php?title=Updating_the_Webui ) don’t seem to change anything.
These are the fields I have available on the server.config page:
Oh, you’re using the python-based webui, which hasn’t been meaningfully updated in 6 years, when it was superseded by the node.js webui.
I’ll start by saying, man, I’m thrilled that the python version lasted as long as it has, for you.
I’m reluctant, of course, to change the python codebase at this point in time, but it wouldn’t be impossible to make changes here in this line of mineos.py, adding in the values you want.
If you want it on a server-by-server basis, though, you’re probably looking at a change like this:
I don’t know why I was still using MineOS in that way - I built this new server in August 2018, and I think I just copied the installation steps from the original old server I built in … 2012? Anyway, I’m not going to hold on to the old.
mineos_console.js is the alternative! Pretty much all the options plus more is available in this version, so feel free to reach out to us in a new thread if you have any questions about porting your scripts.