From 0458f6000bc23175553632a8855b802a4b3bbb66 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 27 Jul 2020 20:48:05 +1000 Subject: [PATCH] SPIGOT-6029: RGB Hex colors not respected with custom kick messages --- nms-patches/PlayerConnection.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nms-patches/PlayerConnection.patch b/nms-patches/PlayerConnection.patch index 3e77187ab5..ce8f237b77 100644 --- a/nms-patches/PlayerConnection.patch +++ b/nms-patches/PlayerConnection.patch @@ -156,8 +156,8 @@ + } + // Send the possibly modified leave message + s = event.getReason(); ++ final IChatBaseComponent ichatbasecomponent = CraftChatMessage.fromString(s, true)[0]; + // CraftBukkit end -+ final ChatComponentText ichatbasecomponent = new ChatComponentText(s); + this.networkManager.sendPacket(new PacketPlayOutKickDisconnect(ichatbasecomponent), (future) -> { this.networkManager.close(ichatbasecomponent);