542 words
3 min read

Upgrade Spigot on Ubuntu Server with Multicraft

Intel Cover: Upgrade Spigot on Ubuntu Server with Multicraft

This article is for those looking for a detailed and clear guide on how to upgrade spigot on Ubuntu Server with Multicraft.

Spigot is a modified Minecraft server built on top of the CraftBukkit core. Spigot is known for its stability, performance, support for a large number of plugins and is intended to replace CraftBukkit.

IMPORTANT

The server must have Multicraft, OpenJDK and Git installed.

You can find out how to install Multicraft on Ubuntu Server by reading Install Multicraft on Ubuntu Server.

To install OpenJDK and Git on the server, you can use the command:

Terminal window
sudo apt install -y default-jdk git
IMPORTANT

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 a server, you can use the command:

Terminal window
sudo apt install openssh-server
NOTE

To connect to the server from a Windows system, you can use tools like PuTTY or MobaXterm.

NOTE

This guide walks you through connecting to a server with the iTerm2 terminal emulator on macOS.

We connect to the Multicraft server on which we plan to update Spigot.

Let’s create a new directory that we need to create a new version of Spigot using the command:

Terminal window
sudo mkdir BuildTools

Upgrade Spigot on Ubuntu Server with Multicraft - Step 1

Go to the new directory using the command:

Terminal window
cd BuildTools

Upgrade Spigot on Ubuntu Server with Multicraft - Step 2

Load the “BuildTools.jar” file using the command:

Terminal window
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.

Upgrade Spigot on Ubuntu Server with Multicraft - Step 3

Let’s make changes to the Git configuration using the command:

Terminal window
sudo git config --global --unset core.autocrlf

Upgrade Spigot on Ubuntu Server with Multicraft - Step 4

We start creating a new version of Spigot using the command:

Terminal window
sudo java -jar BuildTools.jar

Upgrade Spigot on Ubuntu Server with Multicraft - Step 5

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 the new one so that Spigot starts correctly with Multicraft.

Find the location of the old version of Spigot using the command:

Terminal window
sudo find / -name 'spigot*.jar'

Upgrade Spigot on Ubuntu Server with Multicraft - Step 6

The old version is in the directory:

Terminal window
/home/minecraft/multicraft/jar/

Let’s create a backup copy of the old version of Spigot using the command:

Terminal window
sudo mv /home/minecraft/multicraft/jar/spigot.jar /home/minecraft/multicraft/jar/spigot.jar.old

Upgrade Spigot on Ubuntu Server with Multicraft - Step 7

Let’s copy the new version of Spigot to the place of the old version using the command:

Terminal window
sudo cp /home/ubuntu/BuildTools/spigot-* /home/minecraft/multicraft/jar/spigot.jar

Upgrade Spigot on Ubuntu Server with Multicraft - Step 8

Let’s enable execution of the “spigot.jar” file using the command:

Terminal window
sudo chmod +x /home/minecraft/multicraft/jar/spigot.jar

Upgrade Spigot on Ubuntu Server with Multicraft - Step 9

Let’s adjust the owner and group for the “spigot.jar” file using the command:

Terminal window
sudo chown -R minecraft:minecraft /home/minecraft/multicraft/jar/spigot.jar
NOTE

By default Multicraft runs as “minecraft” username. Therefore, the owner of the new version of Spigot must be the user “minecraft”.

Upgrade Spigot on Ubuntu Server with Multicraft - Step 10

The Spigot update has been successfully completed and you can now correctly launch the modified Minecraft server using Multicraft.

NOTE

For a step-by-step guide on starting a Minecraft server with Multicraft, see my tutorial: Run a Minecraft Server with Multicraft.


SIGNAL & INTEL#


Telegram — Strategic IntelYouTube — Visual DoctrineDiscord — Engineering Elite

DOCKER CAPTAIN  ¡  HASHICORP AMBASSADOR  ¡  AWS COMMUNITY BUILDER

Upgrade Spigot on Ubuntu Server with Multicraft
https://www.heyvaldemar.com/upgrade-spigot-on-ubuntu-server-with-multicraft/
Architect
Vladimir Mikhalev
Issued
2021-04-05
Protocol
CC BY-NC-SA 4.0