diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt b/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt index 9ab6993d2..b38638af6 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/HypixelData.kt @@ -78,6 +78,10 @@ class HypixelData { "guesting.scoreboard", "SKYBLOCK GUEST" ) + private val scoreboardTitlePattern by patternGroup.pattern( + "scoreboard.title", + "SK[YI]BLOCK" + ) var hypixelLive = false var hypixelAlpha = false @@ -401,7 +405,6 @@ class HypixelData { val objective = world.scoreboard.getObjectiveInDisplaySlot(1) ?: return false val displayName = objective.displayName val scoreboardTitle = displayName.removeColor() - return scoreboardTitle.contains("SKYBLOCK") || - scoreboardTitle.contains("SKIBLOCK") // April 1st jokes are so funny + return scoreboardTitlePattern.matches(scoreboardTitle) } } |