Hello,
I got an issue while trying to send a player a message.
Example code to reproduce:
if(sender instanceof ProxiedPlayer) {
TextComponent component = new TextComponent("§aKlicke zum vorschlagen.");
component.setClickEvent(new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, "testus"));
sender.sendMessage(component);
}
I use vanilla 1.20.4 as my client and waterfall build 562. I tried to use ClickEvent.Action.COPY_TO_CLIPBOARD, and this doesn't work too.
Does anybody know how to fix this?