Hello,
I tryng to work with text but its a quick diferent to string. I only need to replace a variable in a text form string and i didnt find one way.
player.sendMessage(Text.of(RPLang.get("cmdmanager.page").toString().replace("{page}", ""+(page+1))));
RPlang get this string: &bUse &6/rp ? {page} &bfor next page.
RPLang.get(“cmdmanager.page”) returns Texts with already colors converted using
TextSerializers.FORMATTING_CODE.deserialize(str)
with colors, but when i convert to string(to replace) the color show as rgb and json codes on chat.
How can i replace using texts with colors?