Hi,
I would like to have a colored text and clickable text.
i have this
String url = "";
Pattern pattern = Pattern.compile("www.(\\S+)\\b");
Matcher matcher = pattern.matcher(message);
if (matcher.find())
{
url = matcher.group(0);
}
Text text = TextSerializers.formattingCode('§').deserialize(message);
try {
text = Text.builder().onClick(TextActions.openUrl(new URL(url))).build();
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return text;
But the return is empty