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);