geforkt von SteamWar/BungeeCore
Fix Tablist
Dieser Commit ist enthalten in:
Ursprung
bdbe615790
Commit
28f09e54b9
@ -261,13 +261,16 @@ public class Tablist extends MessageToMessageDecoder<PacketWrapper> {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boolean playerNotOnTeamserver = !Storage.teamServers.containsValue(player.getServer().getInfo());
|
||||||
for(PlayerListItemUpdate.Action action : actions) {
|
for(PlayerListItemUpdate.Action action : actions) {
|
||||||
switch (action) {
|
switch (action) {
|
||||||
case ADD_PLAYER:
|
case ADD_PLAYER:
|
||||||
for (PlayerListItem.Item item : list.getItems()) {
|
for (PlayerListItem.Item item : list.getItems()) {
|
||||||
item.setPing(1);
|
item.setPing(1);
|
||||||
item.setDisplayName(new TextComponent());
|
if (playerNotOnTeamserver) {
|
||||||
item.setListed(false);
|
item.setDisplayName(new TextComponent());
|
||||||
|
item.setListed(false);
|
||||||
|
}
|
||||||
item.setPublicKey(null);
|
item.setPublicKey(null);
|
||||||
if(!player.getUniqueId().equals(item.getUuid()) && item.getGamemode() == 3)
|
if(!player.getUniqueId().equals(item.getUuid()) && item.getGamemode() == 3)
|
||||||
item.setGamemode(1);
|
item.setGamemode(1);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren