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 LoadConfig()
 {
     $this->plugin->saveResource("config.yml");
     $this->config = (new Config($this->plugin->getDataFolder() . "config.yml", Config::YAML))->getAll();
 }