CLI Arguments - Songoda-Plugins/ServerJars-Updater GitHub Wiki
Here you have a list of all the available configurations for the CLI Arguments:
- CLI Arguments
- ServerJars CLI:
--version
: Shows the current running version.--help
: Shows a list of available commands.
- ServerJars Settings:
--sj.debug
: Useful when reporting bugs, it will output more detailed information.--sj.useHomeDirectory
: Instead of saving the cached jar files to the folderjar/
it will use the home directory~/.serverjars/jar
.--sj.skipConfigCreation
: Skips the creation of aserverjars.properties
file using the default values or values from the cli.--sj.serverType={type}
: If used with--sj.skipConfigCreation
, ServerJars will use this as server type. Defaults topaper
.--sj.version={version}
: If used with--sj.skipConfigCreation
, ServerJars will use this as server version. Defaults tolatest
.
- Minecraft Arguments:
--mc.*
: Use this argument to pass a specific command to the server cli. For example--mc.nogui
executes-nogui
.--mcdd.*
: Like--mc.*
passes a specific command to the server cli, but using double dash. For example--mcdd.help
executes--help
.
- ServerJars CLI:
Compatibility Mode
If your host or server doesn't allow the usage of custom variables like --mc.nogui
, you can add the environment variable SJ_COMPATIBILITY=1
like this:
SJ_COMPATIBILITY=1 java -jar ServerJars.jar
This will pass all non serverjars arguments directly to the cli without the need of using --mc
or --mcdd
What about system properties?
System properties can't be controlled, so you're free to use them :D