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

This commit is contained in:
md_5 committed 2020-07-27 20:48:05 +10:00
1 parent 7c03d257dd
commit 0458f6000b
1 file changed
+1 -1
+1 -1
View File
@@ -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);