Minecraft Server build - Ubuntu Server and Spigot

Spigot Minecraft server
Post Reply
Site Admin
Posts: 10
Joined: Sun Aug 02, 2020 5:03 pm

Minecraft Server build - Ubuntu Server and Spigot

Post by 00 »

Install java:

sudo apt-get install git openjdk-8-jre-headless -y

mkdir build and download spigot:
wget https://hub.spigotmc.org/jenkins/job/Bu ... dTools.jar

java -jar BuildTools.jar

This downloads latest version of MC into /build

To download a specific version: java -jar BuildTools.jar --rev 1.8.8

chmod +x start.sh

nano eula.txt

IP Tables
sudo iptables -A INPUT -p tcp --dport 25565 -j ACCEPT

Script to run minecraft (example):
cd /home/minecraft/server;
java -XX:MaxPermSize=1024M -Xms512M -Xmx1536M -jar spigot.jar

Useful commands;

screen ./start.sh - starts and runs when ssh session is closed
screen -r - opens the ssh session again if closed before
stop - stops the MC server

op-level 3 can do everything except stop the server

https://www.vpsserver.com/community/tut ... on-ubuntu/
https://www.linode.com/docs/game-server ... ot-ubuntu/
Post Reply