diff options
author | syeyoung <cyoung06@naver.com> | 2022-12-15 13:40:03 +0900 |
---|---|---|
committer | syeyoung <cyoung06@naver.com> | 2022-12-15 13:40:03 +0900 |
commit | bf56c97637e14df058ac52f270af530b85574be0 (patch) | |
tree | 94a58f6d5c78bde2c6252452ce9f953e47289c42 /mod | |
parent | 1e5e7b1071b7e6c75f9dd26b716d14c5065fe282 (diff) | |
download | Skyblock-Dungeons-Guide-bf56c97637e14df058ac52f270af530b85574be0.tar.gz Skyblock-Dungeons-Guide-bf56c97637e14df058ac52f270af530b85574be0.tar.bz2 Skyblock-Dungeons-Guide-bf56c97637e14df058ac52f270af530b85574be0.zip |
- timeouts
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'mod')
-rwxr-xr-x | mod/src/main/java/kr/syeyoung/dungeonsguide/mod/utils/SkyblockUtils.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/utils/SkyblockUtils.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/utils/SkyblockUtils.java index ef6050e3..2a10ba7e 100755 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/utils/SkyblockUtils.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/utils/SkyblockUtils.java @@ -31,7 +31,7 @@ public class SkyblockUtils { URL url = new URL("https://hypixel-api.inventivetalent.org/api/skyblock/calendar"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); - connection.setRequestProperty("User-Agent", "DungeonsGuide/1.0"); + connection.setRequestProperty("User-Agent", "DungeonsGuide/4.0"); InputStreamReader inputStreamReader = new InputStreamReader(connection.getInputStream()); JsonObject object = (JsonObject) new JsonParser().parse(inputStreamReader); if (!object.get("success").getAsBoolean()) { |