aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-06-19 13:23:56 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-06-19 13:23:56 +0200
commit24ac5fb6dbdb793ce0eeac92c80c24f64f0868de (patch)
tree918421c696578ba87052b9310e530feb04fba098 /src/main/java
parent8d410f3a4e4693da3c42fec910f543083bb57eb5 (diff)
downloadskyhanni-24ac5fb6dbdb793ce0eeac92c80c24f64f0868de.tar.gz
skyhanni-24ac5fb6dbdb793ce0eeac92c80c24f64f0868de.tar.bz2
skyhanni-24ac5fb6dbdb793ce0eeac92c80c24f64f0868de.zip
Removed API key detection and warning for missing api keys
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/ApiDataLoader.kt15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/ApiDataLoader.kt b/src/main/java/at/hannibal2/skyhanni/data/ApiDataLoader.kt
index 82938994a..0d412f6da 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/ApiDataLoader.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/ApiDataLoader.kt
@@ -1,7 +1,6 @@
package at.hannibal2.skyhanni.data
import at.hannibal2.skyhanni.SkyHanniMod
-import at.hannibal2.skyhanni.events.LorenzChatEvent
import at.hannibal2.skyhanni.events.ProfileApiDataLoadedEvent
import at.hannibal2.skyhanni.events.ProfileJoinEvent
import at.hannibal2.skyhanni.utils.APIUtil
@@ -36,19 +35,6 @@ class ApiDataLoader {
}
@SubscribeEvent
- fun onStatusBar(event: LorenzChatEvent) {
- val message = event.message
- if (message.startsWith("§aYour new API key is §r§b")) {
- SkyHanniMod.feature.storage.apiKey = message.substring(26)
- LorenzUtils.chat("§b[SkyHanni] A new API Key has been detected and installed")
-
- if (currentProfileName != "") {
- updateApiData()
- }
- }
- }
-
- @SubscribeEvent
fun onProfileJoin(event: ProfileJoinEvent) {
currentProfileName = event.name
updateApiData()
@@ -99,7 +85,6 @@ class ApiDataLoader {
LorenzUtils.error("§c[SkyHanni] Invalid API key from $modName")
}
}
- LorenzUtils.error("§c[SkyHanni] SkyHanni has no API key set. Please run /api new")
}
}