08-10-2013, 04:58 AM
Code:
try {
URL url = new URL("https://raw.github.com/chibill/AdditionalCrafting/master/Version_Control/1.5.txt");
BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
int str;
int str1;
int str2;
int str3;
str = in.read();
str1 = in.read();
str2 = in.read();
str1 = in.read();
str3 = in.read();
System.out.println(in);
System.out.println(str);
if(in != null){
No_Internet = false;
if(str == 49 && str2 == 48 && str3 == 48){
Up_to_Date = true;
System.out.println("[AdditionalCrafting] Additional Crafting up to date!");
}else
{
System.out.println("[AdditionalCrafting] Additional Crafting is out of date for this verison of Minecraft!");
}
}
in.close();
} catch (MalformedURLException e) {
} catch (IOException e) {
No_Internet = true;
System.out.println("[AdditionalCrafting] Additional Crafting has no internet conection!");
}