diff options
author | bowser0000 <bowser0000@gmail.com> | 2021-08-06 20:45:44 -0400 |
---|---|---|
committer | bowser0000 <bowser0000@gmail.com> | 2021-08-06 20:45:44 -0400 |
commit | 4ef36d87f423c021891075e8015b5f20760510fd (patch) | |
tree | 44471340a0575881c78ff02eafaad37d3c2710fa /src/main/java/me/Danker/commands/DungeonsCommand.java | |
parent | a40b6338955f469f4a476b0d9b0ff61952289bcb (diff) | |
download | SkyblockMod-4ef36d87f423c021891075e8015b5f20760510fd.tar.gz SkyblockMod-4ef36d87f423c021891075e8015b5f20760510fd.tar.bz2 SkyblockMod-4ef36d87f423c021891075e8015b5f20760510fd.zip |
Add option to use lily weight in /weight
Diffstat (limited to 'src/main/java/me/Danker/commands/DungeonsCommand.java')
-rw-r--r-- | src/main/java/me/Danker/commands/DungeonsCommand.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/me/Danker/commands/DungeonsCommand.java b/src/main/java/me/Danker/commands/DungeonsCommand.java index 3391a08..482bcd0 100644 --- a/src/main/java/me/Danker/commands/DungeonsCommand.java +++ b/src/main/java/me/Danker/commands/DungeonsCommand.java @@ -76,7 +76,7 @@ public class DungeonsCommand extends CommandBase { String profileURL = "https://api.hypixel.net/skyblock/profile?profile=" + latestProfile + "&key=" + key; System.out.println("Fetching profile..."); - JsonObject profileResponse = APIHandler.getResponse(profileURL); + JsonObject profileResponse = APIHandler.getResponse(profileURL, true); if (!profileResponse.get("success").getAsBoolean()) { String reason = profileResponse.get("cause").getAsString(); player.addChatMessage(new ChatComponentText(DankersSkyblockMod.ERROR_COLOUR + "Failed with reason: " + reason)); @@ -85,7 +85,7 @@ public class DungeonsCommand extends CommandBase { String playerURL = "https://api.hypixel.net/player?uuid=" + uuid + "&key=" + key; System.out.println("Fetching player data..."); - JsonObject playerResponse = APIHandler.getResponse(playerURL); + JsonObject playerResponse = APIHandler.getResponse(playerURL, true); if (!playerResponse.get("success").getAsBoolean()) { String reason = playerResponse.get("cause").getAsString(); player.addChatMessage(new ChatComponentText(DankersSkyblockMod.ERROR_COLOUR + "Failed with reason: " + reason)); |