but why I think that this is a bug is because when adding any non-space char to the String in the mergeStyle call it is working without problems but I think that should only be a workaround. I included the Parse-Debug-Output of the deserialisation in the mergeStyle part at the end of this issue.
What I wanted to do: I am writing on a plugin for a private server (PaperMC), where a player can input a MiniMessage-Formated String (Like <bold><red>) as a command argument and then the style should be applied to the part of his next messages after the prefix, name and suffix (PREFIX NAME SUFFIX >> FORMAT MESSAGE). The first part until the format (format excluded) is present as String and the message (in the code example represented as _) is present as Component (deseralized MiniMessage) because it is deseralized with an other TagResolver bound to a permission the player has. All things worked except for the thing with the MiniMessage-Color-Tag because it is not included in the Component inside of the mergeStyle call.
Adventure: 4.12.0
Creating a component with following code
ends in (
<bold>_
)instead of a red colored and bold decorated underscore and a Component in a smiliar way to this (This is )
like in
but why I think that this is a bug is because when adding any non-space char to the String in the mergeStyle call it is working without problems but I think that should only be a workaround. I included the Parse-Debug-Output of the deserialisation in the mergeStyle part at the end of this issue.
What I wanted to do: I am writing on a plugin for a private server (PaperMC), where a player can input a MiniMessage-Formated String (Like
<bold><red>
) as a command argument and then the style should be applied to the part of his next messages after the prefix, name and suffix (PREFIX NAME SUFFIX >> FORMAT MESSAGE
). The first part until the format (format excluded) is present as String and the message (in the code example represented as_
) is present as Component (deseralized MiniMessage) because it is deseralized with an other TagResolver bound to a permission the player has. All things worked except for the thing with the MiniMessage-Color-Tag because it is not included in the Component inside of the mergeStyle call.