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.config.ServerInfo;
|
||||||
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.*;
|
||||||
import java.util.Collection;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public class TpCommand extends SWCommand {
|
public class TpCommand extends SWCommand {
|
||||||
|
|
||||||
@ -89,7 +86,7 @@ public class TpCommand extends SWCommand {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (Storage.teamServers.containsValue(((ProxiedPlayer) sender).getServer().getInfo())) {
|
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());
|
list.add(item.getUsername());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -218,7 +218,7 @@ public class Tablist extends MessageToMessageDecoder<PacketWrapper> {
|
|||||||
item.setDisplayName(new TextComponent());
|
item.setDisplayName(new TextComponent());
|
||||||
item.setListed(false);
|
item.setListed(false);
|
||||||
} else if (item.getDisplayName() == null) {
|
} else if (item.getDisplayName() == null) {
|
||||||
item.setDisplayName(new TextComponent("§7" + item.getUsername()));
|
item.setDisplayName(TextComponent.fromLegacy("§7" + item.getUsername()));
|
||||||
}
|
}
|
||||||
item.setPublicKey(null);
|
item.setPublicKey(null);
|
||||||
if(!player.getUniqueId().equals(item.getUuid()) && item.getGamemode() == 3)
|
if(!player.getUniqueId().equals(item.getUuid()) && item.getGamemode() == 3)
|
||||||
@ -273,7 +273,7 @@ public class Tablist extends MessageToMessageDecoder<PacketWrapper> {
|
|||||||
item.setDisplayName(new TextComponent());
|
item.setDisplayName(new TextComponent());
|
||||||
item.setListed(false);
|
item.setListed(false);
|
||||||
} else if (item.getDisplayName() == null) {
|
} else if (item.getDisplayName() == null) {
|
||||||
item.setDisplayName(new TextComponent("§7" + item.getUsername()));
|
item.setDisplayName(TextComponent.fromLegacy("§7" + item.getUsername()));
|
||||||
}
|
}
|
||||||
item.setPublicKey(null);
|
item.setPublicKey(null);
|
||||||
if(!player.getUniqueId().equals(item.getUuid()) && item.getGamemode() == 3)
|
if(!player.getUniqueId().equals(item.getUuid()) && item.getGamemode() == 3)
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren