From 73776b0a4fe54004138652b6700a3be3139f65df Mon Sep 17 00:00:00 2001 From: iGabyTM Date: Sun, 28 Jul 2024 18:08:51 +0300 Subject: [PATCH] feat(plugin): update spigot to 1.21 --- build.gradle | 2 +- plugin/build.gradle | 2 ++ .../me/gabytm/minecraft/arcanevouchers/functions/Strings.kt | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index b9f2d80..8262c44 100644 --- a/build.gradle +++ b/build.gradle @@ -25,7 +25,7 @@ subprojects { dependencies { if (project.name != 'comet') { compileOnly 'org.jetbrains.kotlin:kotlin-stdlib-jdk8' - compileOnly 'org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT' + compileOnly 'org.spigotmc:spigot-api:1.21-R0.1-SNAPSHOT' } } } \ No newline at end of file diff --git a/plugin/build.gradle b/plugin/build.gradle index 46c04df..a81749a 100644 --- a/plugin/build.gradle +++ b/plugin/build.gradle @@ -74,6 +74,8 @@ dependencies { // PAPI compileOnly 'me.clip:placeholderapi:2.10.10' + + implementation 'org.apache.commons:commons-text:1.12.0' } compileKotlin { diff --git a/plugin/src/main/kotlin/me/gabytm/minecraft/arcanevouchers/functions/Strings.kt b/plugin/src/main/kotlin/me/gabytm/minecraft/arcanevouchers/functions/Strings.kt index c79633b..578df60 100644 --- a/plugin/src/main/kotlin/me/gabytm/minecraft/arcanevouchers/functions/Strings.kt +++ b/plugin/src/main/kotlin/me/gabytm/minecraft/arcanevouchers/functions/Strings.kt @@ -9,7 +9,7 @@ import net.kyori.adventure.text.format.TextDecoration import net.kyori.adventure.text.minimessage.ParsingException import net.kyori.adventure.text.minimessage.tag.resolver.TagResolver import net.md_5.bungee.api.ChatColor -import org.apache.commons.lang.StringUtils +import org.apache.commons.lang3.StringUtils import org.bukkit.Bukkit import org.bukkit.Color import org.bukkit.OfflinePlayer