pocketmine\plugin\Plugin::saveResource PHP Method

saveResource() public method

Saves an embedded resource to its relative location in the data folder
public saveResource ( string $filename, boolean $replace = false )
$filename string
$replace boolean
    public function saveResource($filename, $replace = false);

Usage Example

 public function LoadConfig()
 {
     $this->plugin->saveResource("config.yml");
     $this->config = (new Config($this->plugin->getDataFolder() . "config.yml", Config::YAML))->getAll();
 }