CleanUp
CleanUp
This plugin removes old player files at startup and more! See below for more features.
Players
Deletes a player's .dat file if they haven't logged-in in X amount of days. Those that aren't deleted, can have their location specified. Useful if you have a new spawn hub and don't want players spawning in random parts of the world.
Thanks to one4me for his/her Improved Offline Player API
Essentials
Deletes a player's .yml file if they haven't logged-in in X amount of days. Based on timestamps.logout inside their YML file.
PEX
This clean up relates to my ticket regarding empty nodes not being deleted. The in-built cleanup sub command which was suggested failed to work after lots of testing so I came up with this. Read the ticket for information
Backup
You MUST BACKUP before using this. I take no responsibility for anything that may be unintentionally deleted. Once something has been cleaned, it can't be reversed.
Installation
- Stop the server
- Download the .jar
- Put it inside /plugins/
- Start the server, the config will be generated. By default NO clean ups will run.
- Stop the server
- Configure as desired
- Start server
Config
pex: enabled: false file: permissions.yml essentials: enabled: false # Change to true to run days: 60 # If player hasn't logged in 60 days, delete them players: enabled: false # Set to true to run days: 60 # If player hasn't logged in 60 days, delete them, set to 0 to disable deletion setLocation: # Set the location of the player when they next login enabled: false # Set to true to run # Below is pretty much self explanatory x: 0 y: 0 z: 0 world: world disableAll: true # If set to true, it will automatically disable every clean up after they are run, so it won't run again on your next start
Could you compile the 1.7 version of CleanUp please? Thanks
@Tyzun
This version does not work with 1.7. I have updated the repo with a 1.7 compatible version which I'll compile and release this weekend.
Please note that the project does state it is currently inactive.
There is something wrong, I wrote to delete files for players, who havent joim for 60 days, but it delete all files, elder than 20 days!!!
It’s working with 1.7.2 without problems, but only when "World" is your main world.
similar plugin in 1.5.2?
@MineLab
No.
Is this working in 1.6.2 ?
@Shelmak
That wouldn't work as it'd be based on the time the file was last modified, not the time the player last logged in.
I'll update this once I find a nicer way of grabbing the data from NBT.
@Taybosquee
I'm using SimpleCronClone with a .sh script to automatize things like that.
With SimpleCronClone you could program server backups, file cleanups, etc.
You can delete old files using "find" and "rm" commands from linux, but be careful with the directory or you could delete important files.
This plugin is abandoned, it could be updated but probably it will be inactive again.
Will this ever be updated, confuseer? I've searched time and time again and there is absolutely nothing even remotely like this and this fits what I am looking for picture perfect. The Github page does not mean much to be because I don't know Java. :(
Wasn't aware people still used this. I've made a public repo and updated the offline library editor to 1.5.1.
https://github.com/confuser/CleanUp
Confuserr, can you free the source code? I like to edit the plugin to move instead of delete player files...
I've tried the plugin and it works fine, except it deletes many players who shouldn't be deleted. It's deleting roughly twice as many players as it should, I did it manually first to confirm (world player data keeps OS timestamps but Essentials userdata does not, which is why I want this plugin).
Could you please look into this? I can provide you with a zipped up minimized version of my server so you can reproduce the problem, if you need it.
@SiGorN
Not necessarily malicious. In fact, I'm installing this plugin specifically for that feature. I give every new player $50 on first login, and I have over a thousand player files from players who logged on for a minute and never returned. It's annoying because /baltop takes gradually longer to process and the total server money doesn't really reflect that of players who are active.
Works fine for me. But would be great if it removed data from world player data too.
Plugin wiped out my players balances regardless of changing the settings to clear accounts older than 6 months (183 days).
This needs to be fixed or the project pulled. It's malicious in a sense to leave it up in disrepair.
I set the days to 45.
It deleted all my players. Even those who have been playing a lot lately.
Luckily i had a backup..
I wont use this again.