aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/data
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-12 05:48:46 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-12 05:48:46 +0100
commit5fa745e48252f443c8ca199959ab0adecf368adc (patch)
treefb469bdf843e3fb4ca285a2cf69c07f8f15b138f /src/main/java/at/hannibal2/skyhanni/data
parent210ddb127a1aa4bbb80c07156e78af8d9c5e7d4e (diff)
downloadskyhanni-5fa745e48252f443c8ca199959ab0adecf368adc.tar.gz
skyhanni-5fa745e48252f443c8ca199959ab0adecf368adc.tar.bz2
skyhanni-5fa745e48252f443c8ca199959ab0adecf368adc.zip
Added farming weight leaderboard support
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/HyPixelData.kt8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/HyPixelData.kt b/src/main/java/at/hannibal2/skyhanni/data/HyPixelData.kt
index d906be51a..b98664a2a 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/HyPixelData.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/HyPixelData.kt
@@ -26,7 +26,7 @@ class HyPixelData {
var stranded = false
var bingo = false
- var profile = ""
+ var profileName = ""
fun readSkyBlockArea(): String {
return ScoreboardData.sidebarLinesFormatted
@@ -64,13 +64,13 @@ class HyPixelData {
val message = event.message.removeColor().lowercase()
if (message.startsWith("your profile was changed to:")) {
val newProfile = message.replace("your profile was changed to:", "").replace("(co-op)", "").trim()
- profile = newProfile
+ profileName = newProfile
ProfileJoinEvent(newProfile).postAndCatch()
}
if (message.startsWith("you are playing on profile:")) {
val newProfile = message.replace("you are playing on profile:", "").replace("(co-op)", "").trim()
- if (profile == newProfile) return
- profile = newProfile
+ if (profileName == newProfile) return
+ profileName = newProfile
ProfileJoinEvent(newProfile).postAndCatch()
}
}