Archiviert
13
0

SPIGOT-6029: RGB Hex colors not respected with custom kick messages

Dieser Commit ist enthalten in:
md_5 2020-07-27 20:48:05 +10:00
Ursprung 7c03d257dd
Commit 0458f6000b
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: E8E901AC7C617C11

Datei anzeigen

@ -156,8 +156,8 @@
+ } + }
+ // Send the possibly modified leave message + // Send the possibly modified leave message
+ s = event.getReason(); + s = event.getReason();
+ final IChatBaseComponent ichatbasecomponent = CraftChatMessage.fromString(s, true)[0];
+ // CraftBukkit end + // CraftBukkit end
+ final ChatComponentText ichatbasecomponent = new ChatComponentText(s);
+ +
this.networkManager.sendPacket(new PacketPlayOutKickDisconnect(ichatbasecomponent), (future) -> { this.networkManager.sendPacket(new PacketPlayOutKickDisconnect(ichatbasecomponent), (future) -> {
this.networkManager.close(ichatbasecomponent); this.networkManager.close(ichatbasecomponent);