Export the world to a file.
You can unzip the exported file and play in single play or distribute it as it is.
Command:
/exportworld <worldname> <exportfilename>
Spigot or Paper's world name defaults to world.
Do not enter the extension in the destination file name. will be added automatically.