Updated gradle file

This commit is contained in:
Sekwah 2018-06-04 04:47:35 +01:00 committed by Sekwah
parent 79e51c7f27
commit 5d4e8d42c8

View File

@ -421,3 +421,13 @@ publish.finalizedBy 'discordupload'
if (!isCanary) {
publish.finalizedBy 'curseforge'
}
// Set SPIGOT_LOC to the location of your server and SPIGOT_JAR as the name of the jar file in the server you want to run
task runJar() << {
javaexec {
main="-jar"; args "${System.env.SPIGOT_LOC}\\${System.env.SPIGOT_JAR}.jar";
workingDir = "${System.env.SPIGOT_LOC}";
// classpath = "D:\\Servers\\Spigot 1.8\\"
}
}