commands.sh

Minecraft

all

Run a headless Minecraft server.

More info →

Examples (4)

Start a Minecraft server and generate a world if it doesn't exist

java -jar path/to/server.jar --nogui

Set the minimum and maximum amount of memory a server is allowed to have (Note: Setting them the same prevents lag caused by heap scaling)

java -Xms1024M -Xmx2048M -jar path/to/server.jar --nogui

Start a server with a GUI

java -jar path/to/server.jar

[Interactive] Shut the server down

stop
made by @shridhargupta | data from tldr-pages