DATDeleter
Description
DATDeleter is a method of deleting the player.dat files located in your server world. Bukkit stores the player.dat's in the main server world which is specified in the server.properties. So you must open plugins/DATDeleter/config.yml and change the server world.
Permissions
datdeleter.my - The ability to use /deletemydata
datdeleter.others - The ability to use /deletedata player
Commands
/deletemydata
This command will allow you to delete your own player.dat. When you type this command you will be asked to confirm deletion of your profile. Once you confirm, you will be kicked and 0.4 seconds after your profile will be deleted off the server. You will then have the ability to connect and start server life fresh.
/deletedata [player]
This command is really only for administrators only. This will delete another online player's.dat incase their profile is glitched or a bug keeps happening. This functions similar to /deletemydata except you can specify a player and no confirmation is given, so be especially careful with this command or you'll have a player who wants to kill you.
Works on 1.7.2/1.7.4 as well.
I just tested this and verified it works on 1.5.2 R0.1
I'm using it because I have a player making adventure style maps that will use the command to get back into my survival worlds without me worrying about him bringing over items.
Would it be possible to add a command to purge the old player.dat files (like 2 months or 30 days old)
@gamerphate
Try sending a PM to CainFool, if you still need this. Not sure he's checking the comments.
UPDATE to my post below:
I found a way to reset the map, ultimately I just now need a program that will delete ONE single file off my server, any way you can make it so that you can specify in the YML the location of a plugins file you want deleted, and let us do it through an in game command? Thanks in advance!
Hi, I was just wondering if this is a bug:
When trying to use the command deletedata [player] from the console and entering a valid player that actually also is online (myself) I get this:
[INFO] [DATDeleter] You cannot delete console data! (Do you have any idea how bad that would be?
I understand if that would be the case with the /deletemydata command, since I then would be trying to delete console data, but it would be really neat if you could delete players .dat files from the console.
Hi Because of Bugs I need this plugin hardcore. The problem right now, I cant delete offline player.
If a player can't login because of his dat, i cant remove the dat file ingame. Can u fix it? thx
Can you make a feature to does /deletedata all yes or something like that, in which it deletes ALL the user files (I know it would require a restart after this)? I built a custom version of DvZ on my server and I have to delete the user files after each match, delete some other variable file (which I could give you info on if you could some how tie this in as well would be epic). But I am looking to automate the whole process of restarting the match after a game that can be triggered with a command in game. And lastly I have to delete the permission file and then rename the backup I use to start the server with to the original permissions.yml name, and of course reload a backup of the world that I have backed up (to restart the map). I have no idea how possible any of these features are able to put into your plugin but I can say we would donate for it, my players want this server up 24/7 but I just have to sleep sometimes lol.
Maybe to make it more compatible with other people that might find these features handy you could make a YML we can config and point it to the directory's that we need a specific file or all files in the directory deleted. And another for maybe renaming files, (to restore to backup version of them), and lastly one to maybe copy if needed, such as duplicating the backup file that gets renamed so it has another another one to start the process over again. Something like this:
Something along those lines. I am actually using my host to automate the backups where i can just reload from the helm they built to 10 different backup states, but I am sure there would be a way to make a \world\backup1 and have it cycle to that one or something.
I understand if this quite a tall order, but really I can't find another plugin that comes close to pulling this off. And even if you can just add the delete all user data to this plugin it would at least knock out 1 of the 4 problems i have with finding a long term solution. Thanks for your time, and keep up the great work :)
could you make this to automatically delete after like so long of inactivity?