Guidebook compatible with VPS KVM and VPS NAT
This guide shows how to install a Minecraft Java Edition server on a VPS. The engine presented offers much higher performance than the standard Spigot, while maintaining compatibility with plugins developed with Spigot in mind.
To run, we will need a version of Java that matches the version of the server we want to run. Follow the guide below, then return here
Navigate to /home
cd /home
Create a new directory for the server and navigate to it:
mkdir server-minecraft cd server-minecraft
Next, we make our version selection. If you want to create a server on the latest version, go to Downloads - PaperMC 17.1, otherwise under Legacy Downloads - PaperMC 15. Then right-click on the link to download the selected engine version and select image.
To download the selected engine, execute the command:
wget -O server.jar <link>
Finally, accept the terms of the Minecraft EULA 3 by running the command:
echo "eula=true" > eula.txt
Execute the command:
screen -S server-minecraft java -Xmx2048M -Xms2048M -jar server.jar
You can change the flags here, for example the numbers 2048 to others in order to allocate more RAM to the server than 2 GB.