From 2b5b2c24436c61ec222e55f9b66c2f3ed011cb07 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Tue, 25 Oct 2022 21:08:52 +0200 Subject: [PATCH] Hotfix weird tablist behaviour --- src/de/steamwar/bungeecore/tablist/TablistServer.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/tablist/TablistServer.java b/src/de/steamwar/bungeecore/tablist/TablistServer.java index 2a63645..a479720 100644 --- a/src/de/steamwar/bungeecore/tablist/TablistServer.java +++ b/src/de/steamwar/bungeecore/tablist/TablistServer.java @@ -19,7 +19,8 @@ package de.steamwar.bungeecore.tablist; -import de.steamwar.bungeecore.BungeeCore; +import de.steamwar.bungeecore.Servertype; +import de.steamwar.bungeecore.Subserver; import de.steamwar.bungeecore.sql.SteamwarUser; import de.steamwar.messages.ChatSender; import de.steamwar.network.packets.common.FightInfoPacket; @@ -92,6 +93,7 @@ public class TablistServer implements TablistPart { return players.stream().map(item -> { ProxiedPlayer p = BungeeCord.getInstance().getPlayer(item.getUuid()); if (p == null) return item; + if (Subserver.getSubserver(p.getServer().getInfo()).getType() == Servertype.ARENA) return item; if (SteamwarUser.get(p.getUniqueId()).getTeam() != team) return item; return new Item(p, true); });