geforkt von SteamWar/BungeeCore
Add Team showcase in tablist
Dieser Commit ist enthalten in:
Ursprung
f2a8cb064e
Commit
fe4280f9e3
@ -70,7 +70,7 @@ public class TablistBuild implements TablistPart {
|
||||
.map(item -> {
|
||||
ProxiedPlayer p = BungeeCord.getInstance().getPlayer(item.getUuid());
|
||||
if (p == null) return item;
|
||||
if (SteamwarUser.get(p).getTeam() != team) return item;
|
||||
if (SteamwarUser.get(p.getUniqueId()).getTeam() != team) return item;
|
||||
return new Item(p, true);
|
||||
}).forEach(((server == info) ? direct : tablist)::add);
|
||||
}
|
||||
|
@ -79,7 +79,7 @@ public class TablistServer implements TablistPart {
|
||||
players.stream().map(item -> {
|
||||
ProxiedPlayer p = BungeeCord.getInstance().getPlayer(item.getUuid());
|
||||
if (p == null) return item;
|
||||
if (SteamwarUser.get(p).getTeam() != team) return item;
|
||||
if (SteamwarUser.get(p.getUniqueId()).getTeam() != team) return item;
|
||||
return new Item(p, true);
|
||||
}).forEach(items::add);
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren