SteamWar/BungeeCore
Archiviert
13
2

Fix name
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2022-10-26 11:39:25 +02:00
Ursprung 35dc4a5801
Commit 2805f2cff7
2 geänderte Dateien mit 3 neuen und 6 gelöschten Zeilen

Datei anzeigen

@ -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));

Datei anzeigen

@ -91,7 +91,7 @@ public class TablistServer implements TablistPart {
List<Item> 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<Item> slimify(ChatSender viewer, List<Item> items) {
public static List<Item> slimmify(ChatSender viewer, List<Item> items) {
int team = viewer.user().getTeam();
return items.stream()
.map(Item::getUuid)