aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0023-Add-WorldEdit-plugin-flag-test-task.patch
blob: caaa9d04f80c4160aeeb110b4630e666b576618f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
Date: Mon, 12 Feb 2024 22:19:03 -0700
Subject: [PATCH] Add WorldEdit plugin flag test task


diff --git a/build.gradle.kts b/build.gradle.kts
index b995ea46b0fabdab6d398aa1980f9d801460b772..2902bbff8d4aff8d09eaa6b7e4f6c604c42dac29 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -1,9 +1,11 @@
 import io.papermc.paperweight.util.*
+import xyz.jpenilla.runpaper.task.RunServer
 
 plugins {
     java
     `maven-publish`
     id("com.github.johnrengelman.shadow")
+    id("xyz.jpenilla.run-paper") version "2.2.3" apply false
 }
 
 val log4jPlugins = sourceSets.create("log4jPlugins")
@@ -176,6 +178,25 @@ tasks.registerRunTask("runDevServer") {
     jvmArgs("-DPaper.pushPaperAssetsRoot=true")
 }
 
+tasks.register<RunServer>("runWithPlugins") {
+    version.set(providers.gradleProperty("mcVersion"))
+    runJar(rootProject.tasks.named<io.papermc.paperweight.tasks.CreateBundlerJar>("createMojmapBundlerJar").flatMap { it.outputZip })
+    downloadPlugins {
+        url("https://ci.enginehub.org/repository/download/bt10/23382:id/worldedit-bukkit-7.2.19-dist.jar?branch=version/7.2.x&guest=1")
+        url("https://www.patreon.com/file?h=89830486&i=15920178")
+        url("https://dev.bukkit.org/projects/grief-prevention/files/4433061/download")
+        github("EssentialsX", "Essentials", "2.20.1", "EssentialsX-2.20.1.jar")
+        hangar("squaremap", "1.2.3")
+        hangar("FancyHolograms", "2.0.5")
+        hangar("Chunky", "1.3.92")
+        hangar("Multiverse-Core", "4.3.12")
+        // Once they fix package parsing
+        // hangar("Denizen", "1.3.0-Build-1803")
+        // hangar("GrimAnticheat", "2.3.58")
+        // hangar("ProtocolLib", "5.1.0")
+    }
+    runDirectory.set(rootProject.layout.projectDirectory.dir("run"))
+}
 tasks.registerRunTask("runBundler") {
     description = "Spin up a test server from the Mojang mapped bundler jar"
     classpath(rootProject.tasks.named<io.papermc.paperweight.tasks.CreateBundlerJar>("createMojmapBundlerJar").flatMap { it.outputZip })