aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-03-12 21:05:24 +0100
committerGitHub <noreply@github.com>2024-03-12 21:05:24 +0100
commitdb62c8a4ab49d595eef975d888c0350483ffa901 (patch)
treef9f8f1112a4e28b2ad0c7e882df0f3eb5388be02
parent4e56529a71b44f3297888e97498cea0c6c4de16b (diff)
downloadskyhanni-db62c8a4ab49d595eef975d888c0350483ffa901.tar.gz
skyhanni-db62c8a4ab49d595eef975d888c0350483ffa901.tar.bz2
skyhanni-db62c8a4ab49d595eef975d888c0350483ffa901.zip
fixed hypixel update: tab widget allow to disable profile name (#1153)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/ProfileStorageData.kt17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/ProfileStorageData.kt b/src/main/java/at/hannibal2/skyhanni/data/ProfileStorageData.kt
index 274cf24e0..29a32d066 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/ProfileStorageData.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/ProfileStorageData.kt
@@ -12,6 +12,7 @@ import at.hannibal2.skyhanni.utils.ChatUtils
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.SimpleTimeMark
import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher
+import at.hannibal2.skyhanni.utils.TabListData
import at.hannibal2.skyhanni.utils.UtilsPatterns
import net.minecraftforge.fml.common.eventhandler.EventPriority
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
@@ -66,10 +67,18 @@ object ProfileStorageData {
if (noTabListTime.passedSince() > 3.seconds) {
noTabListTime = SimpleTimeMark.now()
- ChatUtils.chat(
- "Extra Information from Tab list not found! " +
- "Enable it: SkyBlock Menu ➜ Settings ➜ Personal ➜ User Interface ➜ Player List Info"
- )
+ val foundSkyBlockTabList = TabListData.getTabList().any { it.contains("§b§lArea:") }
+ if (foundSkyBlockTabList) {
+ ChatUtils.clickableChat(
+ "§cCan not read profile name from tab list! Open /widget and enable Profile Widget",
+ command = "widget"
+ )
+ } else {
+ ChatUtils.chat(
+ "§cExtra Information from Tab list not found! " +
+ "Enable it: SkyBlock Menu ➜ Settings ➜ Personal ➜ User Interface ➜ Player List Info"
+ )
+ }
}
}