Custom Java start Argument

  • 48 Views
  • Last Post 2 weeks ago
Rebeqt posted this 3 weeks ago

Hello,

I have a AMP instance running on:

Linux Platform Debian GNU/Linux 10 (buster) System Type x8664 Virtualization QEMUKVM Module MinecraftModule Application Name AMP Application Version 1.9.8.2 Release Stream Release Build Date 24/03/2020 17:41 Last Executable /usr/bin/java

I would like to start the MC server with the java argument --forceUpgrade But i have the problem that AMP can not start the MC server with this Argument. It always fails to start the Server because the ---forceUpgrade will be set in front of -Djline.terminal=jline.UnsupportedTerminal -jar paperclip.jar nogui -nojline --log-strip-color an i haven't found an option to change the start up script.

If I add Additional java options. --forceUpgrade i get an error

Unrecognized option: --forceUpgrade Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. if I run

-jar paperclip.jar nogui -nojline --log-strip-color --forceUpgrade

Unrecognized option: --forceUpgrade Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. 01:33:25 world-dir -b, --bukkit-settings File for bukkit settings (default: bukkit.yml) -c, --config Properties file to use (default: server.properties) -d, --date-format console (for log entries) --demo Demo mode --eraseCache Whether to force cache erase during world upgrade --forceUpgrade Whether to force a world upgrade -h, --host, --server-ip --log-append Whether to append to the log file (default: true) --log-count Specified how many log files to cycle through (default: 1) --log-limit Limits the maximum size of the log file (0 = unlimited) (default: 0) --log-pattern Specfies the log filename pattern (default: server.log) --log-strip-color Strips color codes from log file --noconsole Disables the console --nogui Disables the graphical console --nojline Disables jline and emulates the vanilla console -o, --online-mode -p, --port, --server-port --paper, --paper-settings paper.yml) -s, --max-players, --size --server-name Name of the server (default: Unknown Server) -v, --version Show the CraftBukkit Version -w, --level-name, --world

Is there an option to change this?`

Kind regards

Benedikt

Rebeqt posted this 2 weeks ago

The reason why I have to start the server with the option --forceUpgrade is that I need to fix my Minecraft World.

If I add the command to the "Additional java options" command line it always puts the command at the beginning of the startup script migrated in amp itself. If I start the server without any arguments Amp automatically starts the server with the following option

Djline.terminal=jline.UnsupportedTerminal -jar paperclip.jar nogui -nojline --log-strip-color

My question is how do I now edit this argument to paperclip.jar nogui --forceUpgrade

Because if I put --forceUpgrade into the java arguments section it will automatically put it infront of this routine and the server will fail to start.

Have a nice weekend.

Benedikt

Close