Posted November 7, 20214 yr If I remember correctly, I think there's a way to send a auto-fill component, which when clicked puts a command into the chat window. How do I send this type of ChatComponent?
November 7, 20214 yr you need add a Style to a Component and the a ClickEvent, e.g: Component component = new TextComponent("").withStyle((style) -> { return style.withClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, "command")); });
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.