From 28bc87528709c76d85d90c065d428ef9c31d2bbb Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Mon, 10 Apr 2023 20:54:07 +0200 Subject: Hide own player name or hypixel watchdog player names from visitor detection --- .../at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main/java/at/hannibal2/skyhanni/features/garden') diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt index 25495a596..0bc7887e5 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt @@ -342,6 +342,13 @@ class GardenVisitorFeatures { if (!name.contains("§")) { name = "§f$name" } + + // Hide hypixel watchdog entries + if (name.contains("§c") && !name.contains("Spaceman")) continue + + //hide own player name + if (name.contains(LorenzUtils.getPlayerUuid())) continue + visitorsInTab.add(name) } } -- cgit