From f4b2a059edbb4fcba14cd24a62eb3dd7033ee018 Mon Sep 17 00:00:00 2001 From: xDec0de_ Date: Thu, 4 Jul 2024 22:15:26 +0200 Subject: [PATCH] test-plugin: Use 1.21 & packetevents 2.4.0 --- test-plugin/build.gradle | 12 ++++++------ test-plugin/src/main/resources/plugin.yml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test-plugin/build.gradle b/test-plugin/build.gradle index 7552bc9..c2843f1 100644 --- a/test-plugin/build.gradle +++ b/test-plugin/build.gradle @@ -7,10 +7,10 @@ plugins { group = 'me.tofaa.peentitymeta' version = '1.0-SNAPSHOT' -// java 17 +// java 21 java { toolchain { - languageVersion.set(JavaLanguageVersion.of(17)) + languageVersion.set(JavaLanguageVersion.of(21)) } } @@ -31,16 +31,16 @@ repositories { } dependencies { - compileOnly('org.spigotmc:spigot-api:1.20.1-R0.1-SNAPSHOT') - compileOnly('com.github.retrooper.packetevents:spigot:2.3.0') + compileOnly('org.spigotmc:spigot-api:1.21-R0.1-SNAPSHOT') + compileOnly('com.github.retrooper:packetevents-spigot:' + peVersion) // implementation(project(":platforms:spigot")) implementation(project(":platforms:spigot")) } runServer { - minecraftVersion("1.20.4") + minecraftVersion("1.21") downloadPlugins { - modrinth("packetevents", "6Rjr7zyF") + modrinth("packetevents", "MfD5eOYA") } } \ No newline at end of file diff --git a/test-plugin/src/main/resources/plugin.yml b/test-plugin/src/main/resources/plugin.yml index 8c23a0e..2c7deb1 100644 --- a/test-plugin/src/main/resources/plugin.yml +++ b/test-plugin/src/main/resources/plugin.yml @@ -3,7 +3,7 @@ version: 1.0.0 depend: - packetevents main: me.tofaa.testentitylib.TestEntityLibPlugin -api-version: "1.19" +api-version: "1.21" commands: testapi: description: Test EntityLib API