Hi, I need to create a plugin in which there will be different types of players. The player can choose this type. I mean a type like Farmer, etc. And this type must be saved, so even after rebooting, players will have them. My idea was to save the player to one array but I don't know how to do it (save the array to config). It happened to me that the player was saved in the array but did not appear in the config. I'll be happy if you help me!
Code: yaml example: farmers: - "name" - "name" php example: PHP: $farmers = $this->getConfig()->get("farmers");$newfarmers = array_push($farmers, $player->getName());$this->getConfig()->set("farmers", $newfarmers);$this->getConfig()->save(); not really a lot of explaining but the yaml shows how to make an array in yaml and php does it through php obviously