Greetings, I am trying to make a plugin where when players login it's as if they login for the first time. Is there a way to disable saving player data. I know that player data is saved in the "players" folder instead of in the world's folder where it is stored for the PC. Is there a simple way of disabling saving this data? I could just delete the file when they leave, but I'm looking for a more happy way of doing this. ~Bench
That turns off the world saving, but it still saves the the player information in /players/playername.dat
Yes, I thought of doing that when they leave, which I think would work. However I was looking for a nicer way of doing I.E. a setting or something.
PHP: public function onQuit(PlayerQuitEvent $e){$p=$e->getPlayer();$name=$p->getName();unlink("/your/folder/players/".$name.".dat")}
I asked for a way nicer way then unlinking the file when they leave. I already thought of this, but am kinda unhappy cause then it's going create the file just to later be deleted.