Spigot
Linux

Building Spigot Minecraft Server on Debian 10

Start by installing the required packages:

sudo apt install git

wget https://launchpad.net/~linuxuprising/+archive/ubuntu/java/+files/oracle-java16-installer_16.0.2-1~linuxuprising0_amd64.deb

sudo apt install ./oracle-java16-installer_16.0.2-1~linuxuprising0_amd64.deb

Download the latest Java version from here:

https://launchpad.net/~linuxuprising/+archive/ubuntu/java/+packages

Configure the system to use the version just installed using the following command:

sudo update-alternatives --config java

Then select the appropriate version, in this case it’s java 16 from Oracle.

Download the latest version of BuildTools:

wget https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar

Configure the environment to be able to run the tool:

git config --global --unset core.autocrlf

Now everything is ready to build the server in the desired version. You can build the latest version with:

java -jar BuildTools.jar --rev latest

Or select a specific version with:

java -jar BuildTools.jar --rev 1.16.5

After it finishes building you can copy it to the appropriate folder and start the server.

Leave a Reply

Your email address will not be published. Required fields are marked *