diff options
| author | Lorenz <ESs95s3P5z8Pheb> | 2022-07-15 19:41:05 +0200 |
|---|---|---|
| committer | Lorenz <ESs95s3P5z8Pheb> | 2022-07-15 19:41:05 +0200 |
| commit | 8918d129525ace873e98840d9d4499e35c92dffe (patch) | |
| tree | d0dd7e5af3738ab52c20ac69de25f91b9149e7c4 /src/main/java/at/hannibal2/skyhanni/misc | |
| parent | 2d923d222ebc58777dbf8523484f69a26313188c (diff) | |
| download | skyhanni-8918d129525ace873e98840d9d4499e35c92dffe.tar.gz skyhanni-8918d129525ace873e98840d9d4499e35c92dffe.tar.bz2 skyhanni-8918d129525ace873e98840d9d4499e35c92dffe.zip | |
added repo support
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/misc')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/misc/ApiData.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/misc/ApiData.kt b/src/main/java/at/hannibal2/skyhanni/misc/ApiData.kt index 5cbedd164..66db57981 100644 --- a/src/main/java/at/hannibal2/skyhanni/misc/ApiData.kt +++ b/src/main/java/at/hannibal2/skyhanni/misc/ApiData.kt @@ -17,7 +17,7 @@ class ApiData { fun onStatusBar(event: LorenzChatEvent) { val message = event.message if (message.startsWith("§aYour new API key is §r§b")) { - SkyHanniMod.feature.apiKey = message.substring(26) + SkyHanniMod.feature.apiData.apiKey = message.substring(26) LorenzUtils.chat("§b[SkyHanni] A new API Key has been detected and installed") if (currentProfileName != "") { @@ -35,7 +35,7 @@ class ApiData { private fun updateApiData() { val uuid = Minecraft.getMinecraft().thePlayer.uniqueID.toString().replace("-", "") - val apiKey = SkyHanniMod.feature.apiKey + val apiKey = SkyHanniMod.feature.apiData.apiKey if (apiKey.isEmpty()) { LorenzUtils.error("SkyHanni has no API Key set. Type /api new to reload.") @@ -72,7 +72,7 @@ class ApiData { } private fun loadProfile(playerUuid: String, profileId: String) { - val apiKey = SkyHanniMod.feature.apiKey + val apiKey = SkyHanniMod.feature.apiData.apiKey val url = "https://api.hypixel.net/skyblock/profile?key=$apiKey&profile=$profileId" val jsonObject = APIUtil.getJSONResponse(url) |
