From 89f1a17c9102acc891dd310a7bcf75a962e43732 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 8 Oct 2021 07:25:06 +0200 Subject: [PATCH] Hotfix tablist Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/listeners/TablistManager.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/de/steamwar/bungeecore/listeners/TablistManager.java b/src/de/steamwar/bungeecore/listeners/TablistManager.java index f82a05c3..0275ce0a 100644 --- a/src/de/steamwar/bungeecore/listeners/TablistManager.java +++ b/src/de/steamwar/bungeecore/listeners/TablistManager.java @@ -90,7 +90,6 @@ public class TablistManager extends BasicListener { //Calculate server-player-map tablist = new TablistGroup(true, ""); TablistGroup bau = new TablistGroup(false, "Bau"); - tablist.addSubTablist(bau); for (ServerInfo server : ProxyServer.getInstance().getServers().values()){ if(server.getPlayers().isEmpty()) continue; @@ -103,6 +102,8 @@ public class TablistManager extends BasicListener { else tablist.addSubTablist(new TablistServer(server)); } + if(bau.size() > 0) + tablist.addSubTablist(bau); size = (int) Math.ceil(tablist.size() / 20.0); tablists.values().forEach(Tablist::refresh); @@ -213,7 +214,7 @@ public class TablistManager extends BasicListener { public void print(Tablist viewer, boolean slim) { subTablists.forEach(tablist -> { if(withHeaders) - viewer.setSlot(gray, "§l" + tablist.name(), 1000); + viewer.setSlot(gray, "§l§7" + tablist.name(), 1000); tablist.print(viewer, slim); if(withHeaders) viewer.setSlot(darkGray, "", 1000);