This article is written for those who were searching for a detailed and simple for the understanding guide on how to update Spigot on Ubuntu Server with Multicraft.
Spigot is a modified Minecraft server based on the CraftBukkit core. Spigot is known for its stability, performance, support for a large number of plugins and is intended to replace CraftBukkit.
In this guide, we will consider the case when you already have a server with the Ubuntu Server 18.04 LTS operating system installed on it.
You can read more about how to install Ubuntu Server 18.04 LTS in my guide «Installing Ubuntu Server 18.04 LTS».
Also on the server must be installed Multicraft, OpenJDK and Git.
You can learn how to install Multicraft on Ubuntu Server by reading «Installing Multicraft on Ubuntu Server».
To install OpenJDK and Git on the server, you can use the command:
sudo apt-get install -y default-jdk git
In addition, OpenSSH must be installed on the server, and port 22 must be open in order to be able to connect to the server using the SSH protocol.
To install OpenSSH on the server, you can use the command:
sudo apt-get install openssh-server
If you plan to connect to the server using the Windows operating system, you can use PuTTY, a freeware client for various remote access protocols, including SSH, Telnet, rlogin.
This guide covers connecting to a server using the iTerm2 terminal emulator installed on the macOS operating system.
Connect to the Multicraft server on which it is planned to update Spigot.
Next, you need to confirm that we trust the server to which we are connecting.
Enter “yes” and press the “Enter” button.
Create the new directory that you will need to create a new version of Spigot using the command:
sudo mkdir BuildTools
Go to the new directory using the command:
Download the “BuildTools.jar” file using the command:
sudo wget https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
The BuildTools.jar file is required to create a new version of Spigot.
Make changes to the Git configuration using the command:
sudo git config --global --unset core.autocrlf
Start creating a new version of Spigot using the command:
sudo java -jar BuildTools.jar
The new version of Spigot has been successfully created and is available in the previously created BuildTools directory.
Now you need to replace the old version of Spigot with a new one so that Spigot starts correctly using Multicraft.
This guide covers updating Spigot on a server with the Multicraft control panel installed.
Find the location of the old version of Spigot using the command:
sudo find / -name 'spigot*.jar'
The old version is in the directory:
Back up the old version of Spigot using the command:
sudo mv /home/minecraft/multicraft/jar/spigot.jar /home/minecraft/multicraft/jar/spigot.jar.old
Copy the new version of Spigot to the place of the old version using the command:
sudo cp /home/ubuntu/BuildTools/spigot-* /home/minecraft/multicraft/jar/spigot.jar
Allow the execution of the file “spigot.jar” using the command:
sudo chmod +x /home/minecraft/multicraft/jar/spigot.jar
Adjust the owner and group for the file “spigot.jar” using the command:
sudo chown -R minecraft:minecraft /home/minecraft/multicraft/jar/spigot.jar
Please note that by default, Multicraft is launched as the user “minecraft”. Therefore, the owner of the new version of Spigot must be the user “minecraft”.
The Spigot update has completed successfully and you can now correctly launch the modified Minecraft server using Multicraft.
You can read more about how to start a Minecraft server using Multicraft in my guide «Starting Minecraft Server with Multicraft».