Why this- doesn't work. (Config work and i have register event config ) , I use 2 plugins : 1 For set information in config , 1 For send information in other plugins . Problem: Plugins don't set config informations :/ PHP: $this->enchant = $this->getServer()->getPluginManager()->getPlugin($plug); $this->enchant->onEnchant(); PHP: public function onEnchant(){ $this->onEnchant = new Config($this->getDataFolder()."enchant.yml",Config::YAML); $this->onEnchant->set("enabledEnchant", "yes"); $this->onEnchant->save(); return true; }
Problem correct , I have not set .yml in enchant.yml =P Thanks For pour help @applqpak and @Creeperface