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