* Set dependency installation as non-interactive
Fixes: apt waits for user input when installing dependencies #439
* Add sudo and wget as dependencies
Fixes: Installer assumes system has sudo and wget installed #440
* Add openjdk-17-jre-headless as dependency
The script will install openjdk-17-jre-headless if java isn't installed already. The choice for version 17 was motivated by the fact it is the latest LTS version and also that it is required for running Minecraft 1.18 and above.
Fixes: Make java an MSM installation dependency? #295
* Add software-properties-common as dependency
The Debian script now installs software-properties-common if not installed, so it can use add-apt-repository.
Fixes: Installer assumes software-properties-common is installed on debian system #441
* Fix broken whitespace
Option was deprecated in git-release v4.0.0. No replacement is needed b/c msm's version tags do not have a static prefix before the version number. (i.e. tag name is "0.9.10", not "version-0.9.10")
The server_start function always assumes successful startup, which
is confusing if the server didn't actually start.
More work needs to be done to trap and return the error on startup,
but for now, this at least lets the admin know the server didn't
actually start.
Previous version of the entry had a typo in the version and
somehow missed the fact that there were a few other releases
in the last few years.
There's not much value in retroactively adding them to the change
log, but we should be more careful in the future.
This commit updates the wl, bl, and op commands to no longer edit
their corresponding server files. msm still edits config settings
in files, but relies on minecraft server to manage it's own files,
passing the commands to the running server for changes.
Minecraft server moved to json in version 1.7.2 which made
directly editing txt files no longer work.
This change follows the pattern of the other passthrough commands
that if the server isn't running, returns error_exit informing the
user the server is not running.
Fixes issue #404
This commit changes the default server files from txt to json.
The only exception is ops.txt which is still populated with users
from DEFAULT_OPS_LIST on server creation. Until msm is updated to
correctly populate ops.json on startup, msm relies on minecraft
server's mechanism to convert ops.txt.
Fixes issue #404
The UseConcMarkSweepGC, CMSIncrementalPacing, and AggressiveOpts
arguments are no longer supported in current versions of Java.
Java fails to start with them present.
Additionally, having less specific default invocation options
allows supporting more versions of Java and makes for less
maintenance into the future as options are deprecated.
Invocation options can be added to individual server configs, or
to the global config, if the user wants to change the defaults.
Fixes issue #402