geforkt von SteamWar/BungeeCore
Fix Peer Review issues
Dieser Commit ist enthalten in:
Ursprung
99f3ad5f03
Commit
5a0cf47878
@ -33,10 +33,7 @@ import net.md_5.bungee.api.ProxyServer;
|
||||
import net.md_5.bungee.api.config.ServerInfo;
|
||||
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.*;
|
||||
|
||||
public class TpCommand extends SWCommand {
|
||||
|
||||
@ -89,7 +86,7 @@ public class TpCommand extends SWCommand {
|
||||
});
|
||||
}
|
||||
if (Storage.teamServers.containsValue(((ProxiedPlayer) sender).getServer().getInfo())) {
|
||||
Storage.directTabItems.getOrDefault((ProxiedPlayer) sender, new HashMap<>()).forEach((uuid, item) -> {
|
||||
Storage.directTabItems.getOrDefault((ProxiedPlayer) sender, Collections.emptyMap()).forEach((uuid, item) -> {
|
||||
list.add(item.getUsername());
|
||||
});
|
||||
}
|
||||
|
@ -218,7 +218,7 @@ public class Tablist extends MessageToMessageDecoder<PacketWrapper> {
|
||||
item.setDisplayName(new TextComponent());
|
||||
item.setListed(false);
|
||||
} else if (item.getDisplayName() == null) {
|
||||
item.setDisplayName(new TextComponent("§7" + item.getUsername()));
|
||||
item.setDisplayName(TextComponent.fromLegacy("§7" + item.getUsername()));
|
||||
}
|
||||
item.setPublicKey(null);
|
||||
if(!player.getUniqueId().equals(item.getUuid()) && item.getGamemode() == 3)
|
||||
@ -273,7 +273,7 @@ public class Tablist extends MessageToMessageDecoder<PacketWrapper> {
|
||||
item.setDisplayName(new TextComponent());
|
||||
item.setListed(false);
|
||||
} else if (item.getDisplayName() == null) {
|
||||
item.setDisplayName(new TextComponent("§7" + item.getUsername()));
|
||||
item.setDisplayName(TextComponent.fromLegacy("§7" + item.getUsername()));
|
||||
}
|
||||
item.setPublicKey(null);
|
||||
if(!player.getUniqueId().equals(item.getUuid()) && item.getGamemode() == 3)
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren