public function saveAll() { if ($this->provider instanceof Provider) { $this->provider->close(); } file_put_contents($this->getDataFolder() . "PlayerLang.dat", serialize($this->playerLang)); }
public function onDisable() { $this->save(); if ($this->provider instanceof Provider) { $this->provider->close(); } }