private void ExportArea(string filename, BlockPos start, BlockPos end, IServerPlayer sendToPlayer = null)
        {
            BlockSchematic blockdata = CopyArea(start, end);
            int            exported  = blockdata.BlockIds.Count;

            string outfilepath = Path.Combine(exportFolderPath, filename);

            if (sendToPlayer != null)
            {
                serverChannel.SendPacket <SchematicJsonPacket>(new SchematicJsonPacket()
                {
                    Filename = filename, JsonCode = blockdata.ToJson()
                }, sendToPlayer);
                Good(exported + " blocks schematic sent to client.");
            }
            else
            {
                string error = blockdata.Save(outfilepath);
                if (error != null)
                {
                    Good("Failed exporting: " + error);
                }
                else
                {
                    Good(exported + " blocks exported.");
                }
            }
        }