From 907ced6d7df8fb59a3a4aa2960c758be836ed9fe Mon Sep 17 00:00:00 2001 From: Glare Date: Thu, 13 Jun 2024 18:08:58 -0500 Subject: [PATCH] feat: initial work on 1.21 --- build.gradle.kts | 6 +++--- .../java/me/clip/placeholderapi/expansion/NMSVersion.java | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 7f5e7c9..3e0b662 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,7 +4,7 @@ plugins { `java-library` `maven-publish` id("com.github.hierynomus.license") version "0.16.1" - id("com.github.johnrengelman.shadow") version "8.1.0" + id("com.github.johnrengelman.shadow") version "8.1.1" } group = "me.clip" @@ -24,9 +24,9 @@ repositories { dependencies { implementation("org.bstats:bstats-bukkit:3.0.1") - implementation("net.kyori:adventure-platform-bukkit:4.3.2") + implementation("net.kyori:adventure-platform-bukkit:4.3.3") - compileOnly("org.spigotmc:spigot-api:1.20-R0.1-SNAPSHOT") + compileOnly("org.spigotmc:spigot-api:1.21-R0.1-SNAPSHOT") compileOnlyApi("org.jetbrains:annotations:23.0.0") testImplementation("org.openjdk.jmh:jmh-core:1.32") diff --git a/src/main/java/me/clip/placeholderapi/expansion/NMSVersion.java b/src/main/java/me/clip/placeholderapi/expansion/NMSVersion.java index a730b5d..a9a8940 100644 --- a/src/main/java/me/clip/placeholderapi/expansion/NMSVersion.java +++ b/src/main/java/me/clip/placeholderapi/expansion/NMSVersion.java @@ -50,7 +50,8 @@ public enum NMSVersion { SPIGOT_1_20_R1("v1_20_R1"), SPIGOT_1_20_R2("v1_20_R2"), SPIGOT_1_20_R3("v1_20_R3"), - SPIGOT_1_20_R4("v1_20_R4"); + SPIGOT_1_20_R4("v1_20_R4"), + SPIGOT_1_21_R1("v1_21_R1"); private final String version;