From 90d7c36358f66fa742cb3e1f62bd0ba8f9c00534 Mon Sep 17 00:00:00 2001 From: md5sha256 <42793301+md5sha256@users.noreply.github.com> Date: Mon, 23 Dec 2024 00:19:12 +0900 Subject: [PATCH] Add run server --- .gitignore | 3 ++- core/build.gradle.kts | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 18e2a4b..63cd2d5 100644 --- a/.gitignore +++ b/.gitignore @@ -161,4 +161,5 @@ Icon .AppleDesktop Network Trash Folder Temporary Items -.apdisk \ No newline at end of file +.apdisk +**/run \ No newline at end of file diff --git a/core/build.gradle.kts b/core/build.gradle.kts index d8b91e6..0b8dfbb 100644 --- a/core/build.gradle.kts +++ b/core/build.gradle.kts @@ -2,6 +2,7 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar plugins { id("com.gradleup.shadow") version "9.0.0-beta4" + id("xyz.jpenilla.run-paper") version "2.3.1" } var relocationBase = "com.github.md5sha256.addictiveexperience.shaded" @@ -123,4 +124,18 @@ tasks { useJUnitPlatform() } + runServer { + // Configure the Minecraft version for our task. + // This is the only required configuration besides applying the plugin. + // Your plugin's jar (or shadowJar if present) will be used automatically. + minecraftVersion("1.21.1") + downloadPlugins { + // Essentials + url("https://ci.ender.zone/job/EssentialsX/lastSuccessfulBuild/artifact/jars/EssentialsX-2.21.0-dev+151-f2af952.jar") + // Vault + github("MilkBowl", "Vault", "1.7.3", "Vault.jar") + } + } + + } \ No newline at end of file