Plugin to auto delete player.dat?

Discussion in 'Bukkit Help' started by Malific, Feb 9, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    Malific

    I've been trying to find a plugin that can delete old .dat files in my world folders for players that haven't logged on in X amount of time. Does one exist or no?

    Also same thing with essentials player.yml files, couldn't find an option in essentials for this.
     
    kamakarzy likes this.
  2. Offline

    rmsy

    I don't believe that there is a plugin that does this, however you could easily add something to your startup script to do this.
     
  3. Offline

    Malific

    I'm not that great at coding the .bat, I mainly just used the wiki for getting my server started.

    Any idea what sort of code I would use? Or where I can find a good wiki on the language the .bat uses.
     
  4. Offline

    rmsy

    Oh, I assumed you were on UNIX. Not sure this is possible with Batch.
     
  5. Offline

    TnT

    Definitely possible with a batch script, or even a PowerShell script.
     
  6. Offline

    rmsy

    Oh, ok, my bad. I wouldn't know, I don't primarily use Windows.
     
  7. Offline

    zipfe

    Why don't you just open the folder, sort by date, and just delete a bunch that haven't logged in for ages.
     
  8. Offline

    Malific

    Was hoping for something automatic, so I don't have to keep checking back on it.

    Plus I make multiple redundant copies, and when I restore things It makes all the files the date that I did the back-up, or the date that I did the restore.

    Was looking primarily for something that runs off last login data.
     
  9. Offline

    zipfe

    You shouldn't run a bukkit plugin for such mundane file delete operations your OS is better and faster at anyway.

    Not a Windows person here, but if you add something like this: http://ss64.com/nt/forfiles.html
    to your server start up .bat, it'll clean out old player.dats or whatever you want on each restart.
     
  10. Offline

    Malific

    As I said I was after a plugin so I could go by last login date. As of right now no file on my server is older than 1/19/2012 because that was when I had to do a restore. But I know hundreds of my player.dats are at LEAST 6 months old.

    I'd like to remove anyone older than 30 days, and doing an OS operation means I'm removing 0 people right now.

    That being said, thanks for the link, it'll help since there's obviously no plugin for it.
     
  11. Offline

    Oscuran

    where you ever able to find something? I have been looking for something like this too.
     
  12. Offline

    Malific

    Sadly no, i just have to sort files by date on my ftp and delete anything to old manually.
     
  13. Offline

    Sphax

    I search the exact same thing currently... Did you find a plugin for that or a side solution which would check the last login date and if older than 2 month, it would be automatically deleted?
     
  14. Offline

    Malific

  15. Offline

    lokpique

Thread Status:
Not open for further replies.

Share This Page