[SOLVED] TextBuilder onClick

Originally was using this however due to recent changes, no longer works.

builder.onClick(new ClickAction.RunCommand("/command"));

What do you mean it no longer works? As far as I can see the APIs are all still there. Are you meaning that it causes an error when running on the server? If so, what’s the error?

I receive this error in eclipse.

The constructor ClickAction.RunCommand(String) is not visible

Ah, I missed that.

You’ll want to use TextActions.runCommand(String) instead.