Skip to content

Commit 1f60856

Browse files
committed
Updating wrapper to new URL
1 parent 286de7c commit 1f60856

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/main/java/com/elyssiamc/Micc/JavaMee6APIWrapper/DataStructures/SimpleAPICache.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public MeeResponse getJson() throws IOException {
4343
httpcon.setDoOutput(true);
4444
httpcon.addRequestProperty("User-Agent", "Mozilla/5.0 (Windows NT 6.1; Win64; x64)");
4545
httpcon.setRequestMethod("GET");
46+
httpcon.setConnectTimeout(5000);
4647
httpcon.connect();
4748

4849
//Read response

src/main/java/com/elyssiamc/Micc/JavaMee6APIWrapper/Mee6API.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class Mee6API {
1616
public Mee6API(String serverid) {
1717
this.serverid = serverid;
1818
mee = new SimpleAPICache(
19-
"https://api.mee6.xyz/plugins/levels/leaderboard/" +
19+
"https://mee6.xyz/api/plugins/levels/leaderboard/" +
2020
serverid, 1000, 300000);
2121
}
2222

0 commit comments

Comments
 (0)