Separate names with a comma.
Comments in 'Plugin Development' started by Adaasi, Oct 18, 2014.
How can I get loaded and unloaded pocketmine worlds?
You may use $server->getLevels()
Try with this code:
He isn't asking for this...
anyway, read the documentation for pocketmine\Server
I didn't find never about this
You can try to get all levels in PocketMine world directory using PHP functions, then if you want to be sure that levels aren't corrupted... you can use:
If it returns false the level is corrupted (or other)...
Please Like if I helped you
I used scandir() first then I checked the level using your code
Last time, don't use Server::getInstance() unless necessary