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)
@MrMe1003
it'll work on 1.5.1 no problems.
The only reason the bukkit version was changed to 1.5.2 is because people continued to PM me demanding I 'update now' before actually trying it and realising that updating wasn't necessary.
Could a version be released for 1.5.1? The reason being my server started being constructed just before 1.5.2 was released, and I thought I would just wait for 1.6 to update...
@joehleonard
Simple-AutoSave doesn't make backups, or keep a log of player's block changes.
If you're looking for rollbacks, I'd recommend logblock for that.
@recon88 Wouldn't be hard to do, and perhaps useful for some servers.
Will implement in the next update. :)
@cheesboy1 Yes.
Please read the plugin description.
Is it correct that you set time autosave time in the config? or with a command or someting
Ops or people with the permissions node (let's say) "Autosave.messages" should be able to recive the save messages (including all the worlds which got saved etc). This would be very helpful since I turned off server broadcast and I don't want to read the console all day.
Hey guy, just wondering how hard it would be to edit this so that we could "roll back" one or 2 saves,
we just had a problem with one of our worlds, and would like the option to beable to roll back incase something happened,
or can you suggest something that would suffice?
@JPTech234
A version for bukkit 1.2.5?
Not sure, I'll have to find some javadocs for 1.2.5 somewhere.
@jsay333
It appears you didn't read the plugin description.
Simple-AutoSave doesn't backup your world & player data, it saves it at a specified period.
How do you use these saves? As in implement them in your server? Example : Someone did a large World Edit and I don't know how to use saves from before that.
Is it possible to create a 1.2.5 version? If there is time of course :3 Its for tekkit server
Greetings.
I like to micro-manage permissions, and it really bothers me to see a whole lot of stuff chunked up in to one permission.
Would you consider adding an 'advanced permissions' option in the config?
advanced-perms: true/false
Permissions: (Maybe change 'autosave.' to 'sas.', 'aas' or 'advanced-auto.save' or something) sas.menu # Default to mods (this would avoid spam-flooding and timing out the console) sas.timer.on/off # Default to admin. sas.save # Default to mods. Something I could add to 'trusted' user group sas.status # Default mods sas.reload # Default admin.
@PouleY
It doesn't back up your game. It just saves the current state.
For example, I play MC for 2 hours and build a great structure. My server crashes and all of the changes since the server was started are lost.
This autosave means that if the server crashes, I only lose what I did since the last time autosave ran.
If you want a backup, I use Bukkit GUI (http://dev.bukkit.org/server-mods/bukkitgui/files/53-bukkit-gui-v1-4-1-0/) which has a way of setting up backups of your world in case you want to revert to an earlier state for some reason.
Hello, i'm new on Bukkit. I want enable auto-save with yout plugin.
How can i define the backup folder? The plugin work, but i can't find backups...
Thanks !
@Peter421
Works fine for 1.4.7
As for your second question, see permissions.
Sorry, so just to clarify this does NOT work on Bukkit Beta 1.4.7? And if it does, how do I set myself to be the Admin? Thanks ahead guys.
For convenience:
String message = ChatColor.translateAlternateColorCodes('&', getConfig().getString("broadcast-message"));
That way you can use any chat color anywhere using &1, &2, etc.
Just curious, but in the future, will this plugin ever provide a world saves backup folder? To save/backup world maps in a easier way?
@FonkyShizuma
A) Currently there is no Bukkit 1.4.7
B) Yes (See the comment below your own)
Working for 1.4.7?
@SwampGoat
Simple-Autosave 0.2.1 will work with almost all known bukkit versions.
Certainly in your case it'll work fine for CB 1.4.x
No recent bukkit updates have changed code which Simple-AutoSave uses to perform it's task.
To cut a long story short however, it'll work fine for you. ;)
Hi - I appreciate this simple little plugin! Which version is appropriate for the current recommended CraftBukkit build (1.4.5-R1.0)? If no reply, I'll try the latest and roll back if it doesn't work, but hoping for an easy answer.
Thanks!
SwampGoat