MiniGames plugin need restoring world. Here's the restoring code (not using copy() ). PHP: //Unload//Please Place World Name in $name$this->getServer()->getLevelByName($name)->setAutoSave(false);$this->getServer()->unloadLevel($this->getServer()->getLevelByName($name),true); to Load, PHP: $this->getServer()->loadLevel($name); I hope to help you.
Use setAutoSave(false) instead. It accepts a boolean. It is not right to pass an int to a method expecting a boolean.
Yes I know it works. But it is incorrect. Why do you pass an integer and let it be casted into a boolean when you can simply directly pass a boolean?
https://github.com/PocketMine/PocketMine-MP/blob/master/src/pocketmine/level/Level.php#L485 It accepts a boolean. If you pass a non-boolean to it, it will be casted into a boolean. But then why don't you pass a boolean directly?