From 133f73dca748be38d757d2a3f207e4a8f40a65e7 Mon Sep 17 00:00:00 2001 From: Sekwah Date: Mon, 4 Jun 2018 04:47:35 +0100 Subject: [PATCH] Updated gradle file --- build.gradle | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build.gradle b/build.gradle index fd8315f..1886e9a 100644 --- a/build.gradle +++ b/build.gradle @@ -23,3 +23,13 @@ dependencies { compile group: 'com.google.code.gson', name: 'gson', version:'2.8.2' compile group: 'com.google.inject', name: 'guice', version:'4.0' } + + +// 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\\" + } +}