From d023bcb70644955b1332990a06899e21c093d642 Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Mon, 8 May 2023 18:31:27 +0200 Subject: [PATCH] Bump paper version to 1.19.4. Seems to compile, but reflection API may not work as is. --- .../fr/pandacube/lib/paper/util/BukkitChatColorUtil.java | 9 ++++++--- pom.xml | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/util/BukkitChatColorUtil.java b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/util/BukkitChatColorUtil.java index 695e0ec..4d65c0e 100644 --- a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/util/BukkitChatColorUtil.java +++ b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/util/BukkitChatColorUtil.java @@ -45,19 +45,22 @@ public class BukkitChatColorUtil { } - + @SuppressWarnings("deprecation") public static ChatColor toBukkit(net.md_5.bungee.api.ChatColor color) { return ChatColor.valueOf(color.getName().toUpperCase()); } - + + @SuppressWarnings("deprecation") public static ChatColor toBukkit(TextColor color) { return toBukkit(NamedTextColor.nearestTo(color)); } - + + @SuppressWarnings("deprecation") public static ChatColor toBukkit(NamedTextColor color) { return ChatColor.valueOf(color.toString().toUpperCase()); } + @SuppressWarnings("deprecation") public static NamedTextColor toAdventure(ChatColor color) { return NamedTextColor.NAMES.value(color.name().toLowerCase()); } diff --git a/pom.xml b/pom.xml index 4a0b60e..94161a6 100644 --- a/pom.xml +++ b/pom.xml @@ -56,8 +56,8 @@ UTF-8 1.19-R0.1-SNAPSHOT - 1.19.2-R0.1 - 1.19.2 + 1.19.4-R0.1 + 1.19.4