-
Type:
Bug
-
Resolution: Incomplete
-
Priority:
Minor
-
None
-
Affects Version/s: None
Create new empty TextComponent rowMessage = new TextComponent(""), after that, add extra to rowMessage with colours (rowMessage.addExtra(....). Send message to player and message not coloured full.
What part of the message do you want to add a hover message to? You can't directly add a hover message to a normal string, currently. But the sample you gave doesn't have a clean way of adding a hover message either.
Once my PR is finished, the game will automatically add the standard hover message (as found on vanilla servers) with the player's UUID and the ability to PM them by clicking their name (if you use %1$s in the format string). Other hover messages won't be automatically usable, but the same framework can be added to the general component library.
Also, one alternative is to use TextMessage.fromLegacyText if you need to parse non-JSON data from configs.