public static @NotNull ClickEvent openUrl(final @NotNull URL url) {
    return openUrl(url.toExternalForm());
  }
Creates a click event that opens a url.

@param url the url to open
@return a click event
@since 4.0.0
api/src/main/java/net/kyori/adventure/text/event/ClickEvent.java