From d260aa236184b51f2af6838598c4660bdc3b7815 Mon Sep 17 00:00:00 2001 From: zleyyij Date: Sun, 23 Jul 2023 08:50:03 -0600 Subject: [PATCH] vault backup: 2023-07-23 08:50:03 --- Setting up a Minecraft server.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Setting up a Minecraft server.md b/Setting up a Minecraft server.md index b3292ce..582d585 100644 --- a/Setting up a Minecraft server.md +++ b/Setting up a Minecraft server.md @@ -49,9 +49,12 @@ wget https://piston-data.mojang.com/v1/objects/84194a2f286ef7c14ed7ce0090dba5990 # -Xms is the amount of memory your server will be allocated when it starts # these two take values in format of NUMBERUNIT, so 3G would be 3 gigabytes, # 512M would be 512 megabytes -java -jar -XmX4g -Xms512M +# server.jar is the name of the server you just downloaded +# nogui is a commandline argument passed to the server that says +# to start without a gui +java -jar -XmX4M -Xms512M server.jar nogui ``` - +The first time you will get an error about an EULA, you need to look for `EUO` This enables minecraft to run in the background, restart if it crashes, etc etc. In `/etc/systemd/system`, place this file and tailor it to your liking.