Closed VenomousInc closed 6 years ago
I'm attempting to pull from the hiscores, but it just returns as Optional.empty
String username = "le me"; StringBuilder sb = new StringBuilder("Test Command -> "); RuneScapeAPI rsa = RuneScapeAPI.createHttp(); Hiscores hiscores = rsa.hiscores(); try { if(hiscores.playerInformation(username, HiscoreTable.DEFAULT).isPresent()) { sb.append(hiscores.playerInformation(username, HiscoreTable.DEFAULT).toString()); } else { sb.append("Can't pull: " + hiscores.playerInformation(username, HiscoreTable.DEFAULT)); } } catch (IOException e) { e.printStackTrace(); } System.out.println(sb);
Thanks for the bug report, seems like the issue is the new hiscore activities that have been added. I'll push a fix soon.
Fixed in v1.1.0
I'm attempting to pull from the hiscores, but it just returns as Optional.empty