If you have started playing with a local world, you can switch this to your server following the guide below:
1. Log into the Pterodactyl panel and open your server
2. Head to the File Manager
3. Rename the current world folder if you want to keep it as a backup or delete it if you don’t need it anymore.
4. Locate your Minecraft world folder on your PC. Upload it to the root directory of your server using the File Manager or SFTP (Recommended).
5. Head to the console page and restart your server