You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varreplacement = TextReplacementConfig.builder().match("hover").replacement(
Component.text()
.content("yeeet")
.hoverEvent(Component.text("hover!"))
.build()
).build();
varcomponent1 = Component.text("hover").replaceText(replacement); // text the same as match abovevarcomponent2 = Component.text("hover ").replaceText(replacement); // there's space at the end nowplayer.sendMessage(component1);
player.sendMessage(component2);
Produces this result:
For some reason, TextReplacementConfig gets called twice (?) in the first case which wrongly replaces text inside hover.
Using Paper 1.17.1 build 399 and adventure-text-api 4.10.0-SNAPSHOT.
The text was updated successfully, but these errors were encountered:
The following code:
Produces this result:
For some reason, TextReplacementConfig gets called twice (?) in the first case which wrongly replaces text inside hover.
Using Paper 1.17.1 build 399 and adventure-text-api 4.10.0-SNAPSHOT.
The text was updated successfully, but these errors were encountered: