to be sure.
Start the server a second time:java -jar -Xms512M -Xmx1008M spigot-1.16.5.jar noguiIt will take forever again. Go drink more coffee. Once the server return the command prompt, it should be operational. Have a Minecraft player connect to raspberrypi.local. Once you have verified that everything works, type stop. If your Raspberry Pi has a lot of memory (e.g., 4 GB or 8 GB) then you can change the -Xmx1008M to something like -Xmx2048M. The number (e.g., 2048M) should not exceed the available RAM. Giving the server more memory may improve the performance. If you have installed the 64-bit Raspberry Pi OS, you may even go safely to larger memory budgets (4096M or more).If you made it this far, then you got a minecraft server running on your Raspberry Pi. Fantastic! However, we want the server to keep on running even when we are not connected by ssh to the server. There are many ways to do this, but we will use screen to achieve our goal. It is not the best way, but it should be good enough.We are going to create a convenient script to start the server. Type nano minecraft.sh and write the following four lines of code:if ! screen -list | grep -q "minecraft"; then cd /home/pi/minecraft screen -S minecraft -d -m java -jar -Xms512M -Xmx1008M spigot-1.16.5.jar nogui fiIt is really important to type the 4-line script (or copy and paste it) accurately. You can also grab the minecraft.sh file from GitHub if you prefer. You must remember to replace spigot-1.16.5.jar with the actual name of your jar file.