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.
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)
-
View User Profile
-
Send Message
Posted Nov 6, 2013@ProSniper234
-
View User Profile
-
Send Message
Posted Oct 21, 2013Please implement a "ghost save", it doesn't display anything in-game, but registers in the console log. That would be great!
-
View User Profile
-
Send Message
Posted Oct 18, 2013Thank 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
-
View User Profile
-
Send Message
Posted Oct 16, 2013Hey could you add a message that tells that the save is finished? Thanks! :)
-
View User Profile
-
Send Message
Posted Sep 26, 2013@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.
-
View User Profile
-
Send Message
Posted Sep 26, 2013anyway 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?
-
View User Profile
-
Send Message
Posted Sep 24, 2013On my server we recently just lost some words, we have no idea what happened, we have this plugin.. How do we re-roll it?
-
View User Profile
-
Send Message
Posted Sep 24, 2013Is 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.
-
View User Profile
-
Send Message
Posted Sep 21, 2013When 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.
-
View User Profile
-
Send Message
Posted Aug 19, 2013@ThisUsernameIsMine
It certainly does.
@UltiByte
Thanks for your kindness, glad that it's been of some use to you. :)
-
View User Profile
-
Send Message
Posted Aug 12, 2013updated 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 ;-)
-
View User Profile
-
Send Message
Posted Aug 9, 2013You'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
-
View User Profile
-
Send Message
Posted Jul 24, 2013@Zezurge
The old world files aren't kept it just overwrites the current saves with the new ones iirc
-
View User Profile
-
Send Message
Posted Jul 23, 2013@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?
-
View User Profile
-
Send Message
Posted Jul 20, 2013@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) :)
-
View User Profile
-
Send Message
Posted Jul 10, 2013@iAmphi
Certainly does.
@BiweGas
Worlds are already saved when server is stopped.
-
View User Profile
-
Send Message
Posted Jul 9, 2013make that when reloading server also it will try to save
-
View User Profile
-
Send Message
Posted Jul 3, 2013I am not sure if that's written here already, but does it saves all Multiversecore worlds?
-
View User Profile
-
Send Message
Posted Jul 2, 2013I love this plugin. FYI it seems to work perfectly in 1.6.1.
-
View User Profile
-
Send Message
Posted Jun 28, 2013Does it save all mutiverse worlds?