From dfdc2d9519556dfec528ab9d1732cdf32aab0639 Mon Sep 17 00:00:00 2001 From: Roman / Nea Date: Tue, 31 May 2022 20:53:26 +0200 Subject: Move repository related configuration to GUI. (#151) --- .../notenoughupdates/profileviewer/ProfileViewer.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java') diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java index 39c12e54..95acb7d8 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewer.java @@ -312,7 +312,7 @@ public class ProfileViewer { HashMap args = new HashMap<>(); NotEnoughUpdates.INSTANCE.manager.hypixelApi.getHypixelApiAsync( - NotEnoughUpdates.INSTANCE.config.apiKey.apiKey, + NotEnoughUpdates.INSTANCE.config.apiData.apiKey, "resources/skyblock/collections", args, jsonObject -> { @@ -331,7 +331,7 @@ public class ProfileViewer { String nameF = name.toLowerCase(); HashMap args = new HashMap<>(); args.put("name", "" + nameF); - manager.hypixelApi.getHypixelApiAsync(NotEnoughUpdates.INSTANCE.config.apiKey.apiKey, "player", + manager.hypixelApi.getHypixelApiAsync(NotEnoughUpdates.INSTANCE.config.apiData.apiKey, "player", args, jsonObject -> { if (jsonObject != null && jsonObject.has("success") && jsonObject.get("success").getAsBoolean() && jsonObject.get("player").isJsonObject()) { @@ -474,7 +474,7 @@ public class ProfileViewer { HashMap args = new HashMap<>(); args.put("uuid", "" + uuid); - manager.hypixelApi.getHypixelApiAsync(NotEnoughUpdates.INSTANCE.config.apiKey.apiKey, "status", + manager.hypixelApi.getHypixelApiAsync(NotEnoughUpdates.INSTANCE.config.apiData.apiKey, "status", args, jsonObject -> { if (jsonObject == null) return; @@ -500,7 +500,7 @@ public class ProfileViewer { HashMap args = new HashMap<>(); args.put("uuid", "" + uuid); NotEnoughUpdates.INSTANCE.manager.hypixelApi.getHypixelApiAsync( - NotEnoughUpdates.INSTANCE.config.apiKey.apiKey, + NotEnoughUpdates.INSTANCE.config.apiData.apiKey, "skyblock/bingo", args, jsonObject -> { @@ -657,7 +657,7 @@ public class ProfileViewer { HashMap args = new HashMap<>(); args.put("uuid", "" + uuid); - manager.hypixelApi.getHypixelApiAsync(NotEnoughUpdates.INSTANCE.config.apiKey.apiKey, "skyblock/profiles", + manager.hypixelApi.getHypixelApiAsync(NotEnoughUpdates.INSTANCE.config.apiData.apiKey, "skyblock/profiles", args, jsonObject -> { updatingPlayerInfoState.set(false); @@ -720,7 +720,7 @@ public class ProfileViewer { HashMap args = new HashMap<>(); args.put("player", "" + uuid); - manager.hypixelApi.getHypixelApiAsync(NotEnoughUpdates.INSTANCE.config.apiKey.apiKey, "guild", + manager.hypixelApi.getHypixelApiAsync(NotEnoughUpdates.INSTANCE.config.apiData.apiKey, "guild", args, jsonObject -> { updatingGuildInfoState.set(false); -- cgit