Closed tahmid-23 closed 1 year ago
TagResolver tag = Formatter.choice("choice", 1); Component component = MiniMessage.miniMessage().deserialize("<choice:\"1#'<b>Hello</b>'|1<'this isn't rendered'\"> why am I bold", tag); System.out.println(component);
outputs TextComponentImpl{content="Hello why am I bold", style=StyleImpl{obfuscated=not_set, bold=true, strikethrough=not_set, underlined=not_set, italic=not_set, color=null, clickEvent=null, hoverEvent=null, insertion=null, font=null}, children=[]}
TextComponentImpl{content="Hello why am I bold", style=StyleImpl{obfuscated=not_set, bold=true, strikethrough=not_set, underlined=not_set, italic=not_set, color=null, clickEvent=null, hoverEvent=null, insertion=null, font=null}, children=[]}
outputs
TextComponentImpl{content="Hello why am I bold", style=StyleImpl{obfuscated=not_set, bold=true, strikethrough=not_set, underlined=not_set, italic=not_set, color=null, clickEvent=null, hoverEvent=null, insertion=null, font=null}, children=[]}