Inactive [ADMN] AutoSave v2.0.1 - Automatic World Saves [935]

Discussion in 'Inactive/Unsupported Plugins' started by cereal, Feb 13, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    cereal

    AutoSave is now on Bukkit Dev! Plenty of information and it is overall much better documented there than it has been here. Wiki pages really help organize all the information that is needed.

    Discuss AutoSave on Bukkit Dev and get information, files, and more from there!




    AutoSave - Automatic World Saves:
    Version: 2.0.1

    AutoSave is meant to provide a simple method to automatically save your world at a defined interval! This plugin ONLY saves to the proper world directories within the Minecraft server. It is not a backup plugin, it is meant to increase persistence and reduce the affects of a server crash.

    Features:
    • Performs a world saves (same as save-all on console)
    • Repeats the above at user defined interval!
    • Warning messages
    • Multi-World Support
    • Configurable messages
    • Option to disable broadcast message
    Download The Plugin
    Source Code

    Changelog:
    Version 2.0.1
    • Small library changes
    Version 2.0.0
    • Color Messages support!
    • Support for Multiple Permissions Plugins (natively)
    • No more version nagging
    • ASync Tasks instead of Sync Tasks (possible performance increase)
    Version 1.3.0
    • Perform save after last player leaves (quits/kicked).
    Full Changelog

    Future Release To-do List:
    • Calculate and create variable for time elapsed during save
    • Make bacon
    • Get more feature suggestions
    Configuration:

    You can configure the plugin via an XML file located at "plugins/AutoSave/config.properties".
    • message.broadcastpre: Message broadcast to all players prior to save
    • message.broadcastprost: Message broadcast to all players after save completed
    • message.insufficentpermissions: Customizable generic insufficient permissions message
    • message.saveplayers: Customizable players save message
    • message.saveworlds: Customizable worlds save message
    • message.warning: Customizable warning message
    • value.off: Customizable value of "off"
    • value.on: Customizable value of "on"
    • var.broadcast: True or False value specifying if broadcasts should be used
    • var.debug: True or False value specifying for additional console output
    • var.interval: Number of seconds between saves
    • var.permissions: Bypass permissions entirely
    • var.report: Toggles reporting thread
    • var.uuid: Anonymous identification
    • var.warntime: n time before the save happens when a warning is broadcast to players, multiple values can be passed by separating by commas
    • var.worlds: Comma seperated list of loaded worlds to be saved. * indicates ALL worlds will be saved.
    Colors:
    If you want to user colors, its simple. Just use one of the following in the appropriate location (config file):
    • Aqua: %AQUA%
    • Black: %BLACK%
    • Dark Aqua: %DARK_AQUA%
    • Dark Blue: %DARK_BLUE%
    • Dark Gray: %DARK_GRAY%
    • Dark Green: %DARK_GREEN%
    • Dark Purple: %DARK_PURPLE%
    • Dark Red: %DARK_RED%
    • Gold: %GOLD%
    • Gray: %GRAY%
    • Green: %GREEN%
    • Light Purple: %LIGHT_PURPLE%
    • Red: %RED%
    • White: %WHITE%
    • Yellow: %YELLOW%
    License:
    Copyright 2011 MilkBowl (https://github.com/MilkBowl)

    This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.


    Commands:

    Note: ALL of the below commands can start with autosave instead of save if another plugin is using the save command such as WorldEdit. This will always allow access to the in game configuration of the plugin.

    /save
    Saves the world outside of the interval.​
    Requires Permission: autosave.save​
    /save help
    Displays help dialogue​
    /save toggle
    Toggles the automatic saves (turns off or on depending on current setting)​
    Requires Permission: autosave.toggle​
    /save status
    Prints status message about the current state of automatic saves​
    Requires Permission: autosave.status​
    /save interval {seconds}
    Sets or gets the interval setting in seconds​
    Requires Permission: autosave.interval​
    /save addworld [value]
    Adds world to the World Save List​
    Requires Permission: autosave.world.add​
    /save remworld [value]
    Removes world from the World Save List​
    Requires Permission: autosave.world.rem​
    /save world
    Displays the World Save List​
    Requires Permission: autosave.world​
    /save broadcast {on|off}
    Sets or gets the broadcast setting​
    Requires Permission: autosave.broadcast​
    /save debug {on|off}
    Sets or gets the debug setting​
    Requires Permission: autosave.debug​
    /save warn {seconds[,seconds]...}
    Sets or gets the warning time setting in seconds (warns users of an upcoming save n seconds before it happens)​
    Requires Permission: autosave.warn​
    /save version
    Prints AutoSave version​
    Requires Permission: autosave.version​

    Reporting:

    AutoSave reports minimal anonymous data to provide general usage tracking. No personal or server information is ever transmitted. The following data is provided:
    • Plugin Name (this will always be AutoSave)
    • Plugin Version
    • Bukkit Version (the full Bukkit version string)
    • Operating System
      • Name
      • Version
      • Architecture
    • Java Version
    This data helps me understand the environments in which AutoSave is used within, however you are more than welcome to disable it, either via "var.report" in the configuration file, or "save report [off|on]" from console.

    Known Issues:
    • During upgrade messages no longer are colored
      • Solution: Delete config file or add colors manually
    Permissions:

    Permissions can be disabled by manually editing the config file and setting "permissions" to false. That will completely disable Permissions. Running AutoSave without Permissions with the value to true (default) will cause the plugin to unload itself.

    Here are the permission settings, either do 'autosave.*' or use the granular permissions below:
    autosave.save: Allows the ability to save at any time​
    autosave.toggle: Allows the ability to stop and start AutoSave​
    autosave.status: Allows the ability to see status of AutoSave​
    autosave.interval: Allows the ability to see and change interval setting​
    autosave.broadcast: Allows the ability to see and change broadcast setting​
    autosave.version: Allows the ability to see the version of AutoSave​
    autosave.debug: Allows the ability to change the debug setting​
    autosave.warn: Allows the ability to see and change the warning time setting​
    autosave.world: Allows the ability to view the world save list​
    autosave.world.add: Allows the ability to add to the world save list​
    autosave.world.rem: Allows the ability to remove from the world save list​
     
    bobacadodl, iKeirNez, Joe12o and 12 others like this.
  2. Offline

    cereal

    @SamAdam17 @anonn @madcrazydrumma

    AutoSave is perfectly working on 818 and above. The only reason this is tagged [INACTIVE] is because I forgot to update this thread to indicate it works on 800+! I've been using it pretty much constantly!

    @madcrazydrumma, as I said in my reply to your message, best way to help with AutoSave is to help on github and submit pull requests for any additional code you feel is necessary or even desirable!
     
    AS1LV3RN1NJA and KillerKlown like this.
  3. Offline

    andrewkm

    @cereal
    I used to use this alot, and gave simplesave a try today because of the backup world feature, but damn that plugins lags my server to death. Going back to this! <3
     
    cereal likes this.
  4. Offline

    cereal

    Glad AutoSave works for you!
     
  5. Offline

    Kainzo

    I was searching for this again :) Going to fire 'er up!
     
  6. Offline

    WillMPage

    Hey, I placed the .jar file in my Plugins folder. Autosave works in the server, but I cant find any sings of a back up folder? Am I missing something?
    Thanks.
     
  7. Offline

    Kaosthe1st

    The plugin doesn't save in any sort of backup directory. It is only a more elegant way to /save-all at a regular interval. It just saves your maps and player.dat files.
     
  8. Offline

    andrewkm

    Hey guys! :)
    Just stopping by to let you know this is working great (AutoSave 1.3.0) on my CB #860!
    Keep up the great work!
     
  9. Offline

    cereal

    Also tested and confirmed working on Recommended Build 860.
     
  10. Offline

    Shynthoras

    could you add a function that only specific groubs in the permissions plugin get the autosave message ?
    would be very helpful becouse my users sais that it spams the chat ^^
    but i want to see when it saves ant when its complete.

    Maybe you could add it to yout to-do list :D

    sorry for my english ;)
     
  11. Offline

    cereal

    Yea, I think I'll probably do a version to include this and colors (I know...I've been meaning to do that!). I'll have to think of the best way to efficiently this though so hang tight.
     
  12. Offline

    Shynthoras

    I think you could do it in the config file who should shown the message or you do it like Deathmessage with permissions.
    Good luck ;)
     
  13. Offline

    supre

    yea would be cool to have colours in the save message. Look forward to next update!
     
  14. Offline

    Kainzo

    At random times, this plugin kicks 3-4 saves a minute when its suppose to do saves every 30mins.
     
  15. Offline

    godgodgodgo

    ^^^ I'm getting this as well.
    Also why is it telling me that it doesn't recognize the craftbukkit version?
    I'm using #860
    Code:
    2011-06-16 07:38:29 [WARNING] [AutoSave] UNKNOWN SERVER VERSION: It has NOT been tested and AutoSave MAY NOT function properly: git-Bukkit-0.0.0-823-gb9d0b04-b860jnks (MC: 1.6.6)
     
  16. Offline

    anonn

    I'm not getting that problem at all.
    Might want to look at your other plugins and see if that's an issue.
     
  17. Offline

    fatmarley

    I would also like to put my voice in for the two issues raised.
     
  18. Offline

    timwilldude

    Same here. I get that error. Problem is, though, save interval doesnt work. Only saves when i do /save or the last person leaves. PLEASE help.
     
  19. Offline

    Xcite4Ever

    Have you done "/save toggle" in console? That should start the AutoSave plugin.
     
  20. Offline

    timwilldude

    Of course, I'm not stupid...
     
  21. Offline

    cereal

    The interval starts when someone logs in. You should try performing a /save debug <- turns on debugging and then join the server. You'll see a message stating the interval at which the saves occur and all that. That being said, if NOBODY is on your server, it will never save (there is no reason to do so!). If you feel that you have players on longer than the interval period and it never saves, well run autosave with debugging on (its a little spammy on the console but it helps me), provide the full server log and AutoSave config file and I'll try to duplicate it.
     
  22. Offline

    Kccool2

    Thank you for bringing it up to date! :D <3
     
  23. Offline

    blazen988

    Hey whenever i change the interval time to 3600(1 hour) and reload my server it just sets it back to 300. Wondering if you knew why it was doing this
     
  24. Offline

    fatmarley

    I think you need to make that change whilst offline
     
  25. Offline

    cereal

    To change the config file by hand (unsupported), you must stop the server completely first. If you want to change settings while the game is running, I suggest you look into the provided commands. When the plugin is disabled (which happens on reload), the configuration file is saved with the data that AutoSave is currently using so it "sets it back". Reality is, you never told the plugin to use the new value and it is behaving as designed.

    tldr;
    • Don't edit the config file while AutoSave is running.
    • Use in game commands (see 1st post).
    • It is not a bug.
     
  26. Offline

    recon88

    Hey there.

    I can't get this Plugin working.
    I'm getting allot of Java Exceptions from some Plugins:
    Log: http://pastebin.com/r6w0J0Mg

    There weren't before. Just after adding your Plugin.

    What can i do that they work together? Using 860
     
  27. Offline

    Rpa;otj

    Still having the unknown server version message and Can't Keep Up message when anything is done with AutoSave. This seems to be the only thing that is going on with a fresh server log and fresh startup. Having lag with 3 players online on a 1GB 30-slot server, not sure if this is the cause atm!

    2011-06-24 10:36:24 [WARNING] [AutoSave] UNKNOWN SERVER VERSION: It has NOT been tested and AutoSave MAY NOT function properly: git-Bukkit-0.0.0-823-gb9d0b04-b860jnks (MC: 1.6.6)
    2011-06-24 10:36:24 [INFO] [AutoSave] Loading config file
    2011-06-24 10:36:25 [INFO] [AutoSave] Version 1.3.0 is enabled: f8ff5dbe-a709-4433-9db6-83dfe96ff8a0
    2011-06-24 10:36:30 [INFO] [AutoSave] AutoSaveThread Started: Interval is 3600 seconds, Warn Times are 0
    2011-06-24 10:36:32 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-06-24 10:38:56 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-06-24 10:40:08 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-06-24 10:40:13 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-06-24 10:40:16 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-06-24 10:40:19 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-06-24 10:40:24 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-06-24 10:40:37 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-06-24 10:40:43 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-06-24 10:41:36 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-06-24 10:42:36 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
     
  28. Offline

    christley

    idk what parts you could translate of the config, but i left the on/off and true/false in english, otherwise here's the swedish translation

    Code:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
    <properties>
    <entry key="var.interval">3600</entry>
    <entry key="message.insufficentpermissions">Du kan inte använda det kommandot.</entry>
    <entry key="var.report">true</entry>
    <entry key="message.saveworlds">{%NUMSAVED%} Världar sparade</entry>
    <entry key="var.uuid">cb9d8570-edbe-4dc4-b417-adea8316cc9e</entry>
    <entry key="value.off">off</entry>
    <entry key="message.saveplayers">Spelare sparade</entry>
    <entry key="var.broadcast">true</entry>
    <entry key="message.broadcastpre">Världar Autosparar</entry>
    <entry key="var.worlds">*</entry>
    <entry key="var.debug">false</entry>
    <entry key="value.on">on</entry>
    <entry key="message.warning">Varning, Autosparning startar strax.</entry>
    <entry key="var.warntime">0</entry>
    <entry key="var.permissions">true</entry>
    <entry key="message.broadcastpost">Autosparning av världen komplett</entry>
    </properties>
    
     
  29. Offline

    cereal

    You should be able to translate the on and off values ;) I'll see what I can do to integrate this ;)

    All of those errors are the Permissions Plugin and nothing to do with AutoSave. I'd suggest you contact the developers of that as AutoSave isn't causing any errors.

    Yea, well...I haven't made an update to "whitelist" the latest build (going to remove that anyhow, its annoying). So that isn't an issue and from the looks of it, the AutoSaveThread starts at 10:36:30 with an interval of 3600 seconds (1 hour), and then 2 seconds later you have what I'm assuming is the lag you are talking about. This isn't caused by the AutoSaveThread, as it merely only just waits for an hour before starting a save, so the fact that it is waiting is not causing this. There must be something else causing the lag.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 8, 2016
  30. Offline

    Rpa;otj

    Ok thank you for the reply, it's just that for a long time after that the log doesn't show anything at all except the logging in and out of players, and I'm trying to wait for my hosting company to respond to my ticket about the lag(it just started last night). Thanks for letting me eliminate AutoSave as a potential cause!
     
  31. Offline

    christley

    then here's the translation:
    Code:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
    <properties>
    <entry key="var.interval">3600</entry>
    <entry key="message.insufficentpermissions">Du kan inte använda det kommandot.</entry>
    <entry key="var.report">true</entry>
    <entry key="message.saveworlds">{%NUMSAVED%} Världar sparade</entry>
    <entry key="var.uuid">cb9d8570-edbe-4dc4-b417-adea8316cc9e</entry>
    <entry key="value.off">av</entry>
    <entry key="message.saveplayers">Spelare sparade</entry>
    <entry key="var.broadcast">true</entry>
    <entry key="message.broadcastpre">Världar Autosparar</entry>
    <entry key="var.worlds">*</entry>
    <entry key="var.debug">false</entry>
    <entry key="value.on">på</entry>
    <entry key="message.warning">Varning, Autosparning startar strax.</entry>
    <entry key="var.warntime">0</entry>
    <entry key="var.permissions">true</entry>
    <entry key="message.broadcastpost">Autosparning av världen komplett</entry>
    </properties>
     
Thread Status:
Not open for further replies.

Share This Page