you have to edit your getVotes() on hopzone ...... :) change your getVotes() with mine working aswell :)
protected static int getVotes()
{
InputStreamReader isr = null;
BufferedReader br = null;
try
{
if(!hopzoneUrl.endsWith(".html"))
hopzoneUrl+=".html";
URLConnection con = new URL(hopzoneUrl).openConnection();
con.addRequestProperty("User-L2Hopzone", "Mozilla/4.76");
isr = new InputStreamReader(con.getInputStream());
br = new BufferedReader(isr);
String line;
while ((line = br.readLine()) != null)
{
if (line.contains("no steal make love")||line.contains("no votes here")||line.contains("bang, you don't have votes")|| line.contains("la vita e bella"))
{
int votes = Integer.valueOf(line.split(">")[2].replace("</span", ""));
return votes;
}
}
br.close();
isr.close();
}
catch (Exception e)
{
System.out.println("[VoteRewardManager]: Problem occured while getting Hopzone votes. Error Trace: " + e.getMessage());
}
return -1;
}