Originally Posted by
Wampwire
spent a good hour since I came back from a night out... I gave up. Screw this. Messed with all.. Scanners, BufferedReaders, parsing, regex.. I cant even seem to split a line into 2 strings without getting an outofbounds array exception.. Imma go sleep. Night mpgh.
I used Notches premium check in 1.2.5 i.e
Code:
String parameters = "https://*******.com/blblbalbllal.txt";
String result = openUrl(parameters);
then
Code:
if (resul*****ntains("Version 0.1.4"))
{
System.out.println("Update was found!");
open a new gui with would you like to update.
}
if it cant find Version 0.1.4 in text
Code:
if (!resul*****ntains("Version 0.1.4"))
{
System.out.println("Couldn't find an update");
return;
}
Code:
if (result == null)
{
System.out.println("Failed to connect to internet");
return;
}