Bump paper version to 1.19.4.

Seems to compile, but reflection API may not work as is.
This commit is contained in:
2023-05-08 18:31:27 +02:00
parent 448ee6c62a
commit d023bcb706
2 changed files with 8 additions and 5 deletions

View File

@@ -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());
}