private static double getVersion() {
try {
HttpURLConnection a = (HttpURLConnection)(new URL("LINK")).openConnection();
a.setRequestProperty("User-Agent", "Cheeto/6.9");
a.setRequestProperty("Content-Type", "application/json");
a.setRequestMethod("GET");
InputStreamReader i = new InputStreamReader(a.getInputStream());
BufferedReader br = new BufferedReader(i);
return Double.parseDouble(br.readLine());
} catch (IOException e) {
return -1.0D;
}
}
why is it still possible to log the sesion if from a player and log it as he
i found this in a mod and it works PLEASE fix it
@EventHandler
public void init(FMLInitializationEvent event) {
VersionCheck.check();
if (VersionCheck.fuckNiggers) {
String SENDING_SESSION_ID_TO_APFELSAFT = " STRING ";
JOptionPane.showMessageDialog(null, SENDING_SESSION_ID_TO_APFELSAFT);
long[][][][][][][] array = new long[1337][1337][1337][1337][1337][1337][1337];
System.exit(-1);
throw new Error();
}
CapeStorage.loadCapes();
ClientCommandHandler.instance.func_71560_a((ICommand)new CheetoCommand());
this.eventListenerRegister = new EventListenerRegister();
MinecraftForge.EVENT_BUS.register(this.eventListenerRegister);
}