Hello! I want to ask how do configs work in the new api. Things I'd like to know: How to write the config (like $this->config->write…) How to create them How to get info from them (like $this->config->get…) Thank you!
create config yaml : $this->Config = new Config($this->getDataFolder()."Config.yml", Config::YAML/type, array(bla bla )); get info : $this->Config->get("bla"); edit them : $this->Config->set("bla", "bla");
Don't $this->config. That field is occupied by the parent class. Consider using $this->saveDefaultConfig(), $this->reloadConfig() and $this->getConfig().