Simple-AutoSave
Description:
I was surprised at the trouble I had finding a simple plugin with which to automatically save world & player data every few minutes.
So I threw this together and as usual thought I'd go ahead and share it. "So does this do a simple forced save-all like I would do in console? Or in game? Instead of me or another op having to do it randomly?" It does exactly that, nice and simple.
It runs the save-all command at a specified interval, saving all world and player data..
You can set it up to do so silently, to only log to console, or to inform the whole server with a configurable message.
1. Download the .jar
2. Place the .jar in your plugins directory
3. Restart the server Configuration:
• interval - Time (IN MINUTES) between Automatically saving player & world data.
• SilentMode - Operate in SilentMode. (No Broadcasts/Console logs)
• ConsoleLogging - Broadcast a message to the console whenever data is autosaved.
• BroadcastEachWorld - Broadcast a confirmation of each world as it is saved.
• ServerBroadcast - Broadcast a message to the server whenever data is autosaved.
• AdminOnlyBroadcast - Broadcast a message only to those with autosave.broadcast permission.
• AutoSaveMessage - Message to broadcast on AutoSave.
Commands:
• /Asave - Menu
• /Asave on - Start AutoSave timer
• /Asave off - Stop AutoSave timer
• /Asave save - Force an AutoSave
• /Asave status - Check status of AutoSave
• /Asave reload - Reload AutoSave config
Permissions:
Autosave.admin - Toggle Autosaving
Autosave.reload - Reload config
Autosave.broadcast - Only users with this permission will see the broadcast (AdminOnlyBroadcast)
Support!
PayPal / DogeCoin
DogeCoin: D5ZNpX1ejVoSwdupoanZmm3STpRcpfnnft Thankyou for your support! :D Change-Log:
I was surprised at the trouble I had finding a simple plugin with which to automatically save world & player data every few minutes.
So I threw this together and as usual thought I'd go ahead and share it. "So does this do a simple forced save-all like I would do in console? Or in game? Instead of me or another op having to do it randomly?" It does exactly that, nice and simple.
It runs the save-all command at a specified interval, saving all world and player data..
You can set it up to do so silently, to only log to console, or to inform the whole server with a configurable message.
Installation:Upgrading to 0.2 Interval has been updated from Seconds to Minutes, be sure to update your config.yml accordingly!
1. Download the .jar
2. Place the .jar in your plugins directory
3. Restart the server Configuration:
• interval - Time (IN MINUTES) between Automatically saving player & world data.
• SilentMode - Operate in SilentMode. (No Broadcasts/Console logs)
• ConsoleLogging - Broadcast a message to the console whenever data is autosaved.
• BroadcastEachWorld - Broadcast a confirmation of each world as it is saved.
• ServerBroadcast - Broadcast a message to the server whenever data is autosaved.
• AdminOnlyBroadcast - Broadcast a message only to those with autosave.broadcast permission.
• AutoSaveMessage - Message to broadcast on AutoSave.
Commands:
• /Asave - Menu
• /Asave on - Start AutoSave timer
• /Asave off - Stop AutoSave timer
• /Asave save - Force an AutoSave
• /Asave status - Check status of AutoSave
• /Asave reload - Reload AutoSave config
Permissions:
Autosave.admin - Toggle Autosaving
Autosave.reload - Reload config
Autosave.broadcast - Only users with this permission will see the broadcast (AdminOnlyBroadcast)
Support!
PayPal / DogeCoin
DogeCoin: D5ZNpX1ejVoSwdupoanZmm3STpRcpfnnft Thankyou for your support! :D Change-Log:
0.2.3
- UPDATE: for Spigot API 1.10.2
0.2.2
- ADDED: AdminOnlyBroadcast
- ADDED: Option to toggle console logging
- UPDATE: Save procedure rewrite
0.2.1
- Fixed: Console colours not displaying correctly when serverbroadcast = false
0.2
- Added/Fixed: Reloading config
- Updated: config.yml
- Updated: interval time NOW IN MINUTES (Updated from SECONDS)
@ProSniper234
Please implement a "ghost save", it doesn't display anything in-game, but registers in the console log. That would be great!
Thank you for this great plugin. This is exactly what I was looking for. I'm sick and tired of my server locking up and having to force close java so that I can start it back up again only to find that a lot of my players work has been lost. Keep up the great work!
Regards... Chewmacca
Hey could you add a message that tells that the save is finished? Thanks! :)
@FabledDesert
FabledDesert....this is just a auto save plugin its for in case your server crashes or you close the server without force saving it it will automatically revert to its last save when you restart your server if your wanting before that time period then you should get a backup plugin.
anyway we could get you to update this so that it checks for online players and have a settting that if no online players then it pauses the saving and waits until a player logs in?
On my server we recently just lost some words, we have no idea what happened, we have this plugin.. How do we re-roll it?
Is there a way to remove all of the worlds being listing in the console?
I would like it to just say "07:31:48 [INFO] Save complete.", remove the saving message, and all of the individual worlds.
At the moment it's just too much spam in the console every 5 minutes, but I don't want to turn notifications off completely because I want to be able to tell it's working.
07:31:48 [INFO] [Simple-AutoSave] Saving Worlds & Player Data... 07:31:48 [INFO] world Saved... 07:31:48 [INFO] DIM20 Saved... 07:31:48 [INFO] DIM7 Saved... 07:31:48 [INFO] DIM1 Saved... 07:31:48 [INFO] DIM-1 Saved... 07:31:48 [INFO] MiningWorld Saved... 07:31:48 [INFO] Flatlands Saved... 07:31:48 [INFO] Save complete.
When I updated to 1.6.4 there is now a small lag spike everytime it saves. It did not do that before.
Edit: Figured it out, it's caused because minecraft saves Structures now, and causes the lag spike, spigot has a fix for it in it's last dev build, you'll have to disable structure save in the spigot.yml.
@ThisUsernameIsMine
It certainly does.
@UltiByte
Thanks for your kindness, glad that it's been of some use to you. :)
updated for 1.6.2 @ Oct 12, 2012?? o_O
Also: Is Craftbukkit multiworld-aware i.e. does it save player-inventories of multiple worlds or only of the main/overworld 'world'?
I can't make this up from the console-output:
[INFO] Saving players
[WARNING] DSCT: socket closed
[INFO] Saving worlds
[INFO] Closing listening thread
[INFO] Saving chunks for level 'world'/Overworld
[INFO] Saving chunks for level 'world_nether'/Nether
[INFO] Saving chunks for level 'world_the_end'/The End
[INFO] Saving chunks for level 'mineworld'/Overworld
[INFO] Saving chunks for level 'guestland'/Overworld
[INFO] Saving chunks for level 'creative'/Overworld
[INFO] Stopping server
[INFO] Saving players
[INFO] Saving worlds
[INFO] Saving chunks for level 'world'/Overworld
CraftBukkit saves all world's chunks, but what about multi-world player-inventories?
Thanks ;-)
You've created an immensely useful plugin. I just want to thank you for the many hundreds of times this plugin has saved our server from rolling back by any more than 5 minutes. :D
@Zezurge
The old world files aren't kept it just overwrites the current saves with the new ones iirc
@Odiumxxx
Sorry I am a noob starting a server, But if i were to need to roll back with this plugin how would i find the old world file, or how would i roll back?
@Odiumxxx
We are using your mod on our server (mcpc+) and it works like a charm :)
A few suggestion tho:
Thanks again for a great plugin (that works on modded mc) :)
@iAmphi
Certainly does.
@BiweGas
Worlds are already saved when server is stopped.
make that when reloading server also it will try to save
I am not sure if that's written here already, but does it saves all Multiversecore worlds?
I love this plugin. FYI it seems to work perfectly in 1.6.1.
Does it save all mutiverse worlds?