chore: add mc task for easier running

This commit is contained in:
Sekwah 2023-01-21 03:07:58 +00:00
parent 4f60d8e319
commit 1ec77035a2
1 changed files with 7 additions and 0 deletions

View File

@ -32,6 +32,7 @@ buildscript {
}
plugins {
id 'dev.s7a.gradle.minecraft.server' version '1.1.0'
id 'net.researchgate.release' version '2.8.1'
}
@ -140,6 +141,12 @@ task discordupload {
}
}
minecraftServerConfig {
//jarUrl.set('https://download.getbukkit.org/spigot/spigot-1.19.3.jar')
jarUrl.set('https://api.papermc.io/v2/projects/paper/versions/1.19.3/builds/381/downloads/paper-1.19.3-381.jar')
jvmArgument = ["-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005", "-DIReallyKnowWhatIAmDoingISwear=true"]
}
String getValueFromCurseAPI(apiKey, endpoint) {
String API_BASE_URL = 'https://minecraft.curseforge.com'