I have a factions plugin that I am in the process of making for my server. Every var_dump I run gives the output I expect, but when it is sent to the actual file, only the default appears. Here is the Code, Please Help! PHP: <?phpnamespace FactionsPro\utils;use FactionsPro\Faction;use FactionsPro\FactionMain;use pocketmine\level\Position;use pocketmine\utils\Config;class YAMLDataProvider { private $plugin; private $file; private $default = [ "Name" => "Default", "Desc" => "Description not set", "MOTD" => "", "Home" => "None", "Leader" => "None", "Members" => [ "None" => Faction::LEADER ] ]; public function __construct(FactionMain $plugin) { $this->plugin = $plugin; $this->file = new Config($this->plugin->getDataFolder()."Factions.yml",Config::YAML,[ "Factions" => [ "Default" => $this->default ] ]); } public function save(Faction $f) : bool { if($this->plugin->devModeEnabled()) { $this->plugin->getLogger()->info("Saving ".$f->getName()."... Stage 4"); } $factions = $this->file->getAll()["Factions"]; if($this->plugin->devModeEnabled()) { $this->plugin->getLogger()->info("Faction Dump before save"); var_dump($factions); } if($f->getHome() instanceof Position) { $home = [$f->getHome()->getX(),$f->getHome()->getX(),$f->getHome()->getX(),$f->getHome()->getLevel()->getName()]; }else{ $home = null; } $factions[$f->getName()] = [ "Name" => $f->getName(), "Desc" => $f->getDescription(), "MOTD" => $f->getMOTD(), "Home" => $home, "Leader" => $f->getLeader(), "Members" => $f->getMembers() ]; $this->file->set("Factions",$factions); if($this->plugin->devModeEnabled()) { $this->plugin->getLogger()->info("Faction Dump after save"); var_dump($factions); } if($this->file->getAll()["Factions"] == $factions) { return true; } return false; } public function getFactionData(string $f) : array { return $this->file->getNested("Factions.{$f}",$this->default); } public function getFactionsData() : array { return $this->file->get("Factions",[ "Default" => $this->default ]); } public function deleteFaction(Faction $f) { $factions = $this->file->getAll()["Factions"]; if($this->plugin->devModeEnabled()) { $this->plugin->getLogger()->info("Faction Dump before delete:"); var_dump($factions); } unset($factions["{$f->getName()}"]); $this->file->set("Factions", $factions); if($this->plugin->devModeEnabled()) { $this->plugin->getLogger()->info("Faction Dump after delete:"); var_dump($factions); } }}