From a4a6cb0fa03a5757aeb1573044a1ce91e6433fd9 Mon Sep 17 00:00:00 2001 From: Marios Date: Sat, 10 Aug 2024 12:45:19 +0300 Subject: [PATCH 1/2] feat: Update to 1.21 --- .idea/misc.xml | 4 ++-- build.gradle.kts | 6 +++--- src/main/resources/plugin.yml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 6e0015b..3ac8c34 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -11,5 +11,5 @@ - - \ No newline at end of file + + diff --git a/build.gradle.kts b/build.gradle.kts index a0df2fb..a38aca7 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -10,7 +10,7 @@ group = "com.hackclub.hccore" description = "Main plugin for the Hack Club Minecraft server." java { - toolchain.languageVersion.set(JavaLanguageVersion.of(17)) + toolchain.languageVersion.set(JavaLanguageVersion.of(21)) } dependencies { @@ -38,7 +38,7 @@ tasks { compileJava { options.encoding = Charsets.UTF_8.name() - options.release.set(17) + options.release.set(21) // show deprecation warnings: paper deprecated lots of pure string functions for chat components // options.isDeprecation = true } @@ -59,7 +59,7 @@ tasks { runServer { - minecraftVersion("1.19.4") + minecraftVersion("1.21") systemProperty("net.kyori.adventure.text.warnWhenLegacyFormattingDetected", false) } } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 081f338..437965e 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,6 +1,6 @@ name: ${name} version: ${version} -api-version: 1.20 +api-version: 1.21 main: com.hackclub.hccore.HCCorePlugin depend: - UltimateAdvancementAPI From afe5c35428e21ad2f7130a9061ffbee6eb248f6a Mon Sep 17 00:00:00 2001 From: Marios Date: Sat, 7 Sep 2024 02:19:53 +0300 Subject: [PATCH 2/2] feat: Switch to 1.21 --- build.gradle.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index a38aca7..8e949a1 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -25,8 +25,8 @@ dependencies { implementation("org.apache.commons:commons-collections4:4.4") compileOnly("com.frengor:ultimateadvancementapi:2.2.3") - compileOnly("com.comphenix.protocol:ProtocolLib:5.0.0-SNAPSHOT") - compileOnly("io.papermc.paper:paper-api:1.20.1-R0.1-SNAPSHOT") + compileOnly("com.comphenix.protocol:ProtocolLib:5.1.0") + compileOnly("io.papermc.paper:paper-api:1.21.1-R0.1-SNAPSHOT") compileOnly("com.mojang:brigadier:1.0.18") }