Use this to display change logs, etc in a new java window.
First, you need to Download Browser.java, and edit the following to lines ONLY, DO NOT Edit any other line.
- Line 33
private static String URL = "URL HERE";
- Line 34
private static String Title = "Browser Title Here";
Then whenever you want to Browser to open just invoke Browser.main();
public void processCommand(ICommandSender p_71515_1_, String[] p_71515_2_)
{
//p_71515_1_.addChatMessage(new ChatComponentTranslation("TEST", new Object[0]));
try {
Browser.main();
} catch (MalformedURLException e) {
e.printStackTrace();
}
}
To see an example of this being used Click Here
To download the sample Click Here.