From cac558ee1d754c72e1fe2321d5608cc5938781a0 Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Sat, 5 Jul 2025 14:38:18 +0300 Subject: [PATCH] minecraft: add page (#17124) Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com> Co-authored-by: Wiktor Perskawiec --- pages/common/minecraft.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/minecraft.md diff --git a/pages/common/minecraft.md b/pages/common/minecraft.md new file mode 100644 index 0000000000..f70ec80e56 --- /dev/null +++ b/pages/common/minecraft.md @@ -0,0 +1,20 @@ +# minecraft + +> Run a headless Minecraft server. +> More information: . + +- 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 -Xms{{1024M}} -Xmx{{2048M}} -jar {{path/to/server.jar}} --nogui` + +- Start a server with a GUI: + +`java -jar {{path/to/server.jar}}` + +- Shut the server down: + +`stop`