Skip to content

Startup options

Bruno Martins edited this page Apr 27, 2020 · 2 revisions

These options are used to override the ones in your server.json configuration. This is most useful when you want to override something inside a script.

In order to use them, just place those you want to use after specifying the .jar file. Example:

java -jar elytra-sdk.jar --port 25566

Index

--help, -h

Show the help page. There you can see all available options, just like in this page.

Example:
$ java -jar elytra-sdk.jar --help

--version, -v

See the current supported minecraft and protocol versions.

Example:
$ java -jar elytra-sdk.jar --version
Minecraft Version: 1.15.2
Protocol Version: 578

--onlyPremium, --onlinemode, --online, -P

Change the onlyPremium status, if no value provided defaults to true.

Example:
# Set onlyPremium to false
$ java -jar elytra-sdk.jar --onlyPremium false

# Set onlyPremium to true
$ java -jar elytra-sdk.jar --onlyPremium

--port, -p

Change the port the server listens on.

A value is required for this options.

Example:
# Change the port to 25566
$ java -jar elytra-sdk.jar --port 25566

# Specifying no value
$ java -jar elytra-sdk.jar --port
The option '--port' wasn't found or requires extra parameters.

Clone this wiki locally