Improved TimeUtil + fix BukkitChatColorUtil

This commit is contained in:
2021-09-02 14:27:03 +02:00
parent c8b626f655
commit ea1cf90119
2 changed files with 108 additions and 56 deletions

View File

@@ -72,11 +72,11 @@ public class BukkitChatColorUtil {
}
public static org.bukkit.ChatColor toBukkit(NamedTextColor color) {
return org.bukkit.ChatColor.valueOf(color.toString());
return org.bukkit.ChatColor.valueOf(color.toString().toUpperCase());
}
public static NamedTextColor toAdventure(org.bukkit.ChatColor color) {
return NamedTextColor.NAMES.value(color.name());
return NamedTextColor.NAMES.value(color.name().toLowerCase());
}
}