/** * Creates a new file containing skin data * @param Human $human */ public static function toFile(Human $human) { @mkdir(SkinTools::getInstance()->getDataFolder() . "data/"); file_put_contents(SkinTools::getInstance()->getDataFolder() . "data/" . strtolower($human->getName()) . ".dat", self::compress($human->getSkinData())); }