pocketmine\level\Level::save PHP Method

save() public method

public save ( boolean $force = false ) : boolean
$force boolean
return boolean
    public function save(bool $force = false) : bool
    {
        if (!$this->getAutoSave() and !$force) {
            return false;
        }
        $this->server->getPluginManager()->callEvent(new LevelSaveEvent($this));
        $this->provider->setTime((int) $this->time);
        $this->saveChunks();
        if ($this->provider instanceof BaseLevelProvider) {
            $this->provider->saveLevelData();
        }
        return true;
    }
Level