From dc9939643852feb44774a8a1784705a606797fea Mon Sep 17 00:00:00 2001 From: Vaption Date: Mon, 6 Oct 2025 22:06:53 +0330 Subject: [PATCH 1/3] Add runServer as a Gradle task --- .gitignore | 1 + build.gradle | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/.gitignore b/.gitignore index e7edf1b..557e951 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ build/ out/ classes/ target/ +server/ *.launch diff --git a/build.gradle b/build.gradle index e684c02..47426ae 100644 --- a/build.gradle +++ b/build.gradle @@ -36,6 +36,21 @@ tasks.withType(JavaCompile) { options.encoding = 'UTF-8' } +tasks.register('runServer', Exec) { + dependsOn 'shadowJar' + workingDir "$projectDir/server" + + doFirst { + def pluginDir = file("$projectDir/server/plugins") + def pluginJar = fileTree("$buildDir/libs") { include '*.jar' }.files.max { it.lastModified() } + + delete fileTree(pluginDir) { include 'Armstrong-*.jar' } + copy { from pluginJar; into pluginDir } + } + + commandLine 'java', '-jar', 'paper.jar', 'nogui' +} + processResources { filteringCharset = 'UTF-8' filesMatching('plugin.yml') { From 951167f486b1a6553d23c093eb3d2e0ba4dcea6a Mon Sep 17 00:00:00 2001 From: Vaption Date: Mon, 6 Oct 2025 22:44:29 +0330 Subject: [PATCH 2/3] Add Gradle dependency & repo --- build.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.gradle b/build.gradle index 47426ae..639b1ce 100644 --- a/build.gradle +++ b/build.gradle @@ -18,6 +18,7 @@ repositories { maven { url 'https://repo.extendedclip.com/releases/' } maven { url 'https://jitpack.io' } maven { url 'https://repo.lunarclient.dev' } + maven { url 'https://repo.alessiodp.com/releases/' } mavenCentral() } @@ -28,6 +29,7 @@ dependencies { compileOnly 'com.lunarclient:apollo-api:1.2.0' compileOnly 'com.lunarclient:apollo-extra-adventure4:1.2.0' compileOnly 'me.clip:placeholderapi:2.11.6' + compileOnly 'com.alessiodp.parties:parties-api:3.2.16' implementation 'co.aikar:acf-paper:0.5.1-SNAPSHOT' implementation 'org.bstats:bstats-bukkit:3.1.0' } From b43aa291d609d2c4ae66b2bd6576abd4910dbce1 Mon Sep 17 00:00:00 2001 From: Vaption Date: Mon, 6 Oct 2025 22:48:09 +0330 Subject: [PATCH 3/3] Soft-depend on Parties --- src/main/resources/plugin.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index a51c3e3..1b40b54 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -5,5 +5,5 @@ authors: - Dubai - RefineDevelopment depend: [] -softdepend: [ Apollo-Bukkit, PlaceholderAPI ] +softdepend: [ Apollo-Bukkit, PlaceholderAPI, Parties ] version: ${version} \ No newline at end of file