Skip to content

emanh1/SpigotAutoUpdater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

SpigotAutoUpdater

A shell script that auto-updates your spigot.jar file

This was originally made by RiotShielder of SpigotMC forum, aka ShepherdJerred

#!/bin/sh
cd /home/minecraft #Switch to the directory /home/minecraft
mkdir tempdl #Make a folder where the jars should be downloaded to
cd tempdl #Switch to the folder we just made
 
wget http://ci.md-5.net/job/Spigot/lastSuccessfulBuild/artifact/Spigot-Server/target/spigot.jar #Download the latest version of Spigot
wget http://ci.md-5.net/job/BungeeCord/lastSuccessfulBuild/artifact/bootstrap/target/BungeeCord.jar #Download the latest version of BungeeCord
 
#Copy the .jars to the server folders
#You can change where the jars will be placed
cp spigot.jar /home/minecraft/economy/spigot.jar
cp spigot.jar /home/minecraft/factions/spigot.jar
cp spigot.jar /home/minecraft/hungergames/spigot.jar
cp spigot.jar /home/minecraft/minigames/spigot.jar
cp spigot.jar /home/minecraft/dev/spigot.jar
cp BungeeCord.jar /home/minecraft/bungee/BungeeCord.jar
 
#Remove the .jars we just downloaded
rm -rf /home/minecraft/tempdl