Tablist fix: Make similar to header and footer
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
57b220f77c
Commit
9de6b8602d
@ -37,6 +37,7 @@ import net.md_5.bungee.protocol.Either;
|
|||||||
import net.md_5.bungee.protocol.PacketWrapper;
|
import net.md_5.bungee.protocol.PacketWrapper;
|
||||||
import net.md_5.bungee.protocol.ProtocolConstants;
|
import net.md_5.bungee.protocol.ProtocolConstants;
|
||||||
import net.md_5.bungee.protocol.packet.*;
|
import net.md_5.bungee.protocol.packet.*;
|
||||||
|
import net.md_5.bungee.util.ChatComponentTransformer;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
@ -305,7 +306,7 @@ public class Tablist extends MessageToMessageDecoder<PacketWrapper> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private BaseComponent wrapName(String name) {
|
private BaseComponent wrapName(String name) {
|
||||||
return TextComponent.fromArray(TextComponent.fromLegacyText(name));
|
return ChatComponentTransformer.getInstance().transform(player, true, TextComponent.fromArray(TextComponent.fromLegacyText(name)));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void sendTabPacket(List<PlayerListItem.Item> items, PlayerListItem.Action action) { //Breaks in 1.19.3 if action != UPDATE_DISPLAY_NAME, ADD_PLAYER or REMOVE_PLAYER
|
private void sendTabPacket(List<PlayerListItem.Item> items, PlayerListItem.Action action) { //Breaks in 1.19.3 if action != UPDATE_DISPLAY_NAME, ADD_PLAYER or REMOVE_PLAYER
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren