I am looking for a plugin that will delete the bpermissions user files and essentials user files whenever the server stops/restarts. Anyone know of a plugin to do this or able to make me one? This would be much appreciated. Thanks.
What would be the use of this? Edit: Also, what type of plugins are you developing for your server. I may be interested in joining.
Well I am setting up a server for dwarves vs. zombies. After every game I would like the users file to reset so all the dwarves and zombies are set back to the default class. Then they will get the default tag again and be able to choose a new class next game. If you want to join my server you are welcome but we are not online yet. Its built on the ashes of an old server so when i do put it up we will be instantly popular though. Anyways if you could make a simple plugin where I would put a link to all the files i want deleted, in a config file. Then, every time the server is stopping it deletes those.
I'm not quite sure you can do that with a plugin, but you can edit your server startup script to delete those files for you. Make it go into your bpermissions or essentials folder (using 'cd') and use 'rm [nameOfFile]'. Put these lines AFTER the one that runs craftbukkit. (You know, the 0_0Xmx 0_0Xms -jar craftbukkit.jar or whatever it is). That will make it delete the files when the server shuts down. Hope that helps!
Wouldn't it be more beneficial to make a plugin that temporarily sets people to a group and resets them when a game ends instead of a plugin that deletes your users.yml?
I'm sure it would be, but how would a plugin move every player (Online or Not) to a permissions group when I type a command? Any plugins people know of?
Just alter your startup script so that after it runs it deletes the files, then loops back to the server startup. This way the files are cleaned whenever you run /stop.
I use BukkitGUI to manage my server. Could you give me some code to add to a startup script to delete a file, so I can put that in a .bat Bump EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Assuming you are windows, I would create a startup script for you but I am a Mac. I'm used to Shell Script, not Batch.
Yeah I'm windows I still need a answer. Someone give me something clear and meaningful please. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Google batch scripting and how to delete files. Here is the second link I cam around, could be useful http://wiki.answers.com/Q/How_do_you_make_a_batch_to_delete_files_in_a_certain_folder If that link doesn't help then I hope you are able to search for an answer since it is easily found.
with the GUI you can: create a .bat file "deletefiles.bat". Then use the BukkitGUI task manager to run this file when the server stops Create a new task in the GUI, on server stop, shellexecute "del "____\users.yml"
Okay, I will try that right now! Thanks, I really like BukkitGUI and now I can still use it, Awesome! It worked! The first one worked anyway, the second just gave me an error. Anyways thank you so much! EDIT by Moderator: merged posts, please use the edit button instead of double posting.