aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorAPI.kt6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorAPI.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorAPI.kt
index cedbe8839..ad7c6f192 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorAPI.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorAPI.kt
@@ -168,8 +168,10 @@ object VisitorAPI {
logger.log("Ignore wrong own name: '$name'")
continue
}
-
- visitorsInTab.add(name)
+ val finalName = if (name.endsWith(" §b§lNEW!")) {
+ name.split(" §b§lNEW!")[0]
+ } else name
+ visitorsInTab.add(finalName)
}
return visitorsInTab
}