PlayerSaver
About PlayerSaver
Description
Very simple plugin - once every given amount of time it forces saving all online players equipment, position, etc. into file (username.dat located in world/players directory).
Why I wrote this plugin
Well... First of all, bukkit saves players data files only during logout of that player. Imagine what will happen if someone plays for few hours and then server crashes. That player inventory and position is being reset to the state of his last logout. Very annoying! Secondly I'm running a bukkit server and despite /save-all runned every hour it still rollbacks players to last logout. Also it saddens me whenever my players loses hours of gameplay due to crash. That's the reason why I was determined to write this little plugin, also I couldn't find any with that functionality. And I want to share it with you, so you can prevent painful rollbacks on your own servers.
Download
Configuration
config.yml
You can set your own saving interval using configuration file that is generated at first run. Only one value - interval, set in seconds. Default is 60 seconds. This timer is common for all players, not individual per player.
Interval: 60
Permissions
In order to save player file he/she must have set permission named playersaver.save to true (default is false). You can use this permission to allow saving only higher ranked players like VIPs or something like that. Currently only PermissionsBukkit is supported.
Bugs
None as far as I known. I've heavly tested it on my local server as well on dedicated linux server which runs 24/7 with many players and it runs fine without any problems.
To-Do
Not much I can think of, but if there will be any interest in this plugin I think of adding multiple timers depending on permission (for example common players will be saved once every 10 minutes, but admins once every one minute, and so on) or/and independent timer for every player.
Changelog
- 7.11.2011 - Initial release of version 0.1
update please 1.12.2 ;-)
It will help alot if it can support the latest CB.
Same question:Update or source code please?
Is there source code available for this? Would like to make sure it works with the latest bukkit.
Update?
I've had a lot of server lock-ups with players losing inventory. Hoping this little plugin cuts way down on the complaints! Thanks.