Skip to content

Instantly share code, notes, and snippets.

@Yxogenium
Last active January 1, 2016 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Yxogenium/55dc550ffece417f1b02 to your computer and use it in GitHub Desktop.
Save Yxogenium/55dc550ffece417f1b02 to your computer and use it in GitHub Desktop.
mkdir "Build" ".old"
robocopy /IS . .old\ "spigot.jar" /move /minage:7
if not exist "spigot.jar" (
cd "Build"
curl -o "BuildTools.jar" -z "BuildTools.jar" "https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar"
java -jar "BuildTools.jar"
cd ..
for %%G in ("Build\spigot-*.jar") do (
mv "%%G" "spigot.jar"
)
)
if exist "spigot.jar" (
java -server -XX:+DisableExplicitGC -jar "spigot.jar")
else (
java -server -XX:+DisableExplicitGC -jar ".old\spigot.jar")
PAUSE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment