Bump paper version to 1.19.4.

Seems to compile, but reflection API may not work as is.
This commit is contained in:
Marc Baloup 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) { public static ChatColor toBukkit(net.md_5.bungee.api.ChatColor color) {
return ChatColor.valueOf(color.getName().toUpperCase()); return ChatColor.valueOf(color.getName().toUpperCase());
} }
@SuppressWarnings("deprecation")
public static ChatColor toBukkit(TextColor color) { public static ChatColor toBukkit(TextColor color) {
return toBukkit(NamedTextColor.nearestTo(color)); return toBukkit(NamedTextColor.nearestTo(color));
} }
@SuppressWarnings("deprecation")
public static ChatColor toBukkit(NamedTextColor color) { public static ChatColor toBukkit(NamedTextColor color) {
return ChatColor.valueOf(color.toString().toUpperCase()); return ChatColor.valueOf(color.toString().toUpperCase());
} }
@SuppressWarnings("deprecation")
public static NamedTextColor toAdventure(ChatColor color) { public static NamedTextColor toAdventure(ChatColor color) {
return NamedTextColor.NAMES.value(color.name().toLowerCase()); return NamedTextColor.NAMES.value(color.name().toLowerCase());
} }

View File

@ -56,8 +56,8 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<bungeecord.version>1.19-R0.1-SNAPSHOT</bungeecord.version> <bungeecord.version>1.19-R0.1-SNAPSHOT</bungeecord.version>
<paper.version>1.19.2-R0.1</paper.version> <paper.version>1.19.4-R0.1</paper.version>
<mc.version>1.19.2</mc.version> <mc.version>1.19.4</mc.version>
</properties> </properties>
<modules> <modules>