-
-
Notifications
You must be signed in to change notification settings - Fork 9
CLI Arguments
Francisco Solis edited this page Oct 30, 2023
·
3 revisions
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.propertiesfile 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.noguiexecutes-nogui. -
--mcdd.*: Like--mc.*passes a specific command to the server cli, but using double dash. For example--mcdd.helpexecutes--help.
-
- ServerJars CLI:
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.jarThis will pass all non serverjars arguments directly to the cli without the need of using --mc or --mcdd
System properties can't be controlled, so you're free to use them :D