Player Cleanup from Player.dat files

Discussion in 'Spigot Plugin Development' started by Pete127, May 10, 2015.

  1. Hi,
    I have been looking for something like this for a while and never come across anything.
    If you have a suggestion please let me know.

    Basically I want something to cleanup the old player.dat files of players that haven't used the server in say `6 months` or a preset config and wipe their player data , I know it stores dates in the player dat file but I have a reasonable amount so I would like it to somehow gently go through them without all at once causing massive lag.
    Im sure many servers have really old player data files .

    Please let me know if there is something already that exists or someone can make something to do this :)
     
  2. Get all the OfflinePlayers, check getLastPlayed()