For the first thing, btw this is untested.
Add this in client.java:
Now add this somewhere above customCommands:Code:import java.net.URLConnection; import java.net.URL; private String link = "Link Here"; // Link to site
Now for the command, add this under customCommands:Code:private static void openUpWebSite(String url) { Desktop d = Desktop.getDesktop(); try { d.browse(new URI(url)); } catch (Exception e) { } }
Code:if (command.equalsIgnoreCase("vote")) { openUpWebSite("Link Here!"); }