Posted October 25, 20169 yr Hi, I want to send a link in chat but using addChatComponentMessage(TextComponentString) doesn't work as a clickable link. What should I use to do that? Thanks.
October 28, 20169 yr Author You can either use ITextComponent::getStyle().setClickEvent on the text component to make the whole text clickable with whatever action you want or you can use ForgeHooks.newChatWithLinks , which will parse a String for URLs and make them clickable. Thanks! I figured out the ClickEvent thing before but couldn't post until now.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.