-
Notifications
You must be signed in to change notification settings - Fork 0
/
update.sh
19 lines (16 loc) · 921 Bytes
/
update.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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