geforkt von SteamWar/BungeeCore
Hotfix TablistServer
Dieser Commit ist enthalten in:
Ursprung
83839a292a
Commit
24bfb12941
@ -90,6 +90,7 @@ public class TablistServer implements TablistPart {
|
|||||||
|
|
||||||
public static Stream<Item> teamify(List<Item> players, ProxiedPlayer player) {
|
public static Stream<Item> teamify(List<Item> players, ProxiedPlayer player) {
|
||||||
int team = SteamwarUser.get(player.getUniqueId()).getTeam();
|
int team = SteamwarUser.get(player.getUniqueId()).getTeam();
|
||||||
|
if (team == 0) return players.stream();
|
||||||
return players.stream().map(item -> {
|
return players.stream().map(item -> {
|
||||||
ProxiedPlayer p = BungeeCord.getInstance().getPlayer(item.getUuid());
|
ProxiedPlayer p = BungeeCord.getInstance().getPlayer(item.getUuid());
|
||||||
if (p == null) return item;
|
if (p == null) return item;
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren