[SPIGOT-3876] TextComponent.fromLegacyText(String message, ChatColor reset) to choose the replacement of ChatColor.RESET to match the environment Created: 29/Mar/18  Updated: 29/Mar/18  Resolved: 29/Mar/18

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Selebrator Assignee: Unassigned
Resolution: Invalid Votes: 0
Labels: Spigot, api, chat


 Description   

 

net.md_5.bungee.api.chat.TextComponent#fromLegacyText(String) makes the text after ChatColor.RESET become white.
But the default/reset color is different from white in some text fields. In books and on signs the color defaults to black and in Lore it's purple.
I suggest adding a new Method net.md_5.bungee.api.chat.TextComponent#fromLegacyText(String, ChatColor) the first argument is the same for both methods. The added argument is the color used for ChatColor.RESET

 



 Comments   
Comment by Selebrator [ 29/Mar/18 ]

Sorry, I moved the Ticket to https://github.com/SpigotMC/BungeeCord/issues/2396

 

Comment by md_5 [ 29/Mar/18 ]

This isn’t the bungeecord Issue tracker

Generated at Fri Mar 14 15:13:00 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.