Hi, I have seen that the system has returned to what it was and i like to contribute to the change of code that already works, at least with the counting system.
try
{
url = new URL(Config.VOTE_SYSTEM_PAGE_TOPZONE);
URLConnection con = url.openConnection();
con.addRequestProperty("User-Agent", "L2TopZone");
isr = new InputStreamReader(con.getInputStream());
in = new BufferedReader(isr);
String inputLine;
while ((inputLine = in.readLine()) != null)
{
if (inputLine.contains("<div class=\"votes2\">Votes:<br>"))
{
String i = inputLine.replace("<div class=\"votes2\">Votes:<br>", "");
i = i.replace("</div>", "");
i = i.trim();
int o = Integer.parseInt(i);
return Integer.valueOf(o);
}
}
}
Have to go this way on my server, I believe that others can change anything.
What can compare with my previous code, and compare the difference.
I hope you help
bye