From 2805f2cff7ef3872077e6f954e67dd093982bd97 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Wed, 26 Oct 2022 11:39:25 +0200 Subject: [PATCH] Fix name --- src/de/steamwar/bungeecore/tablist/TablistBuild.java | 5 +---- src/de/steamwar/bungeecore/tablist/TablistServer.java | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/de/steamwar/bungeecore/tablist/TablistBuild.java b/src/de/steamwar/bungeecore/tablist/TablistBuild.java index 6ee3fb8..c81ae40 100644 --- a/src/de/steamwar/bungeecore/tablist/TablistBuild.java +++ b/src/de/steamwar/bungeecore/tablist/TablistBuild.java @@ -21,10 +21,7 @@ package de.steamwar.bungeecore.tablist; import de.steamwar.bungeecore.Servertype; import de.steamwar.bungeecore.Subserver; -import de.steamwar.bungeecore.sql.SteamwarUser; -import de.steamwar.bungeecore.sql.UserGroup; import de.steamwar.messages.ChatSender; -import net.md_5.bungee.BungeeCord; import net.md_5.bungee.api.ProxyServer; import net.md_5.bungee.api.config.ServerInfo; import net.md_5.bungee.api.connection.ProxiedPlayer; @@ -89,7 +86,7 @@ public class TablistBuild implements TablistPart { if (toPrint.isEmpty()) return; int all = toPrint.size(); - toPrint = TablistServer.slimify(viewer, toPrint); + toPrint = TablistServer.slimmify(viewer, toPrint); if (tablist.isEmpty() || tablist.get(tablist.size() - 1).getDisplayName().equals("")) { tablist.add(new Item(null, "", TablistServer.GRAY)); diff --git a/src/de/steamwar/bungeecore/tablist/TablistServer.java b/src/de/steamwar/bungeecore/tablist/TablistServer.java index faf2d99..989dbd6 100644 --- a/src/de/steamwar/bungeecore/tablist/TablistServer.java +++ b/src/de/steamwar/bungeecore/tablist/TablistServer.java @@ -91,7 +91,7 @@ public class TablistServer implements TablistPart { List toPrint = players; if (!onServer) { - toPrint = TablistServer.slimify(viewer, players); + toPrint = TablistServer.slimmify(viewer, players); if (tablist.isEmpty() || tablist.get(tablist.size() - 1).getDisplayName().equals("")) { items.add(new Item(null, "", GRAY)); @@ -128,7 +128,7 @@ public class TablistServer implements TablistPart { }); } - public static List slimify(ChatSender viewer, List items) { + public static List slimmify(ChatSender viewer, List items) { int team = viewer.user().getTeam(); return items.stream() .map(Item::getUuid)