Simple-AutoSave

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.

 

Upgrading to 0.2

Interval has been updated from Seconds to Minutes, be sure to update your config.yml accordingly!

 

Installation:
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.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)


             

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of vastrix vastrix Apr 15, 2014 at 17:30 UTC - 0 likes

    euhm, Version 0.2.2 Didn't create a cfg file for us :s (running 1.6.4, but it should be backwards compatible, right?)

    Also this: 13:23:42 [SEVERE] Error occurred while enabling Simple-AutoSave v0.2.2 (Is it up to date?) java.lang.NullPointerException at me.odium.autosave.autosave.onEnable(autosave.java:22) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:467) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:383) at org.bukkit.craftbukkit.v1_6_R3.CraftServer.loadPlugin(CraftServer.java:278) at org.bukkit.craftbukkit.v1_6_R3.CraftServer.enablePlugins(CraftServer.java:260) at net.minecraft.server.MinecraftServer.func_71243_i(MinecraftServer.java:521) at net.minecraft.server.MinecraftServer.func_71222_d(MinecraftServer.java:485) at net.minecraft.server.MinecraftServer.func_71247_a(MinecraftServer.java:428) at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:224) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:630) at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)

    Last edited Apr 15, 2014 by vastrix
  • Avatar of semirotta semirotta Mar 26, 2014 at 13:27 UTC - 0 likes

    @JPCVx: Go

    I suppose this just makes the /save command in game automatically. Or is it /save-all or what but anyway, it just makes that so the save data goes into the server data where it would go normally when shutting down the server or saving.

  • Avatar of semirotta semirotta Mar 22, 2014 at 11:49 UTC - 0 likes

    @HenAld: Go

    learn to use pastebin www.pastebin.com

  • Avatar of JPCVx JPCVx Mar 20, 2014 at 23:51 UTC - 0 likes

    Hi,

    Your plugin is great, but I cannot seem to find where it actually saves the world and the playerdata to. Either I'm too clumsy, or I'm doing something wrong? Help would be appreciated. Thanks!

  • Avatar of semirotta semirotta Mar 18, 2014 at 08:42 UTC - 0 likes

    I don't know if this is because of this plugin but I got this in the console for some reason after world-save / player data save: [10:37:10] [Server thread/WARN]: A manual (plugin-induced) save has been detected while server is configured to auto-save. This may affect performance.

  • Avatar of Odiumxxx Odiumxxx Feb 13, 2014 at 05:30 UTC - 0 likes

    @RainDolphinBow: Go

    Please read the plugin description.

    @SilverKytten: Go

    I may look into this for future updates.

    @nicktehbrick: Go

    You are confused. Please read the plugin description/config file.

    @ProSniper234: Go

    Toggle option for Console logging added in latest version.

    @TheOnlyRealTGS: Go

    Please read the plugin description/config file.

  • Avatar of RainDolphinBow RainDolphinBow Feb 06, 2014 at 21:37 UTC - 0 likes

    So does this save my world and put it in like a folder or something? Would I be able to go back in to a folder and grab one of the saves?

  • Avatar of SilverKytten SilverKytten Jan 21, 2014 at 14:12 UTC - 0 likes

    Would be possible to add in support for multi-lined messages?

    As it is, I have to put a ton of spaces in, to get messages spaced out properly, so that if I have something like below, it'll show up on two separate lines.. It's rather annoying, as I'd like to have the messages be longer and more interactive, but I'm limited on what I can do, because it counts everything as one single paragraph..

    " AutoSaveMessage: '`1[`CCaptain Kirk`1] `2Commence the saving of the world, number
    one. `1[`rSpock`1] `2Saving the world, captain.'"

    http://mcserverstatus.com/12597_5.pnghttp://mcserverstatus.com/23159_5.png

    Anti-intellectualism has been a constant thread winding it's way through out political and cultural life, nurtured by the false notion that democracy means that my ignorance is just as good as your knowledge. - Isaac Asimov

  • Avatar of nicktehbrick nicktehbrick Jan 03, 2014 at 16:03 UTC - 0 likes

    Hi there,

    A little feature request: While the BroadcastEachWorld is handy, with a few worlds this can seem a little spammy, and without BroadcastEachWorld turned on there is no confirmation message that everything saved successfully. Any change you can add in an option to say "All worlds saved successfully"?

    Thanks!

  • Avatar of krawson krawson Nov 06, 2013 at 10:59 UTC - 0 likes

    Hi,

    Great Plugin.

    I have a new feature request:

    Could you please make it so we can configure auto save per world, not global.

    Thank you

    k

Facts

Date created
Sep 15, 2012
Category
Last update
Feb 13, 2014
Development stage
Release
Language
  • enUS
License
GNU Lesser General Public License version 3 (LGPLv3)
Curse link
Simple-AutoSave
Downloads
105,881
Recent files

Authors