Deprecate ChatColor (#9069)

All API that uses it is deprecated
This commit is contained in:
Jake Potrebic
2023-04-02 11:53:29 -07:00
parent 7d091ee970
commit 74b88dc367
7 changed files with 87 additions and 12 deletions

View File

@@ -692,6 +692,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ return getLegacy(player.getHandle());
+ }
+
+ @SuppressWarnings("deprecation") // Valid suppress due to supporting legacy display name formatting
+ public static String getLegacy(final ServerPlayer player) {
+ final String legacy = player.displayName;
+ if (legacy != null) {