AutoSaveWorld
AutoSaveWorld - multifunctional plugin that can save, backup, purge, restart the minecraft server, reload plugins and much more.
AutoSaveWorld will work on any bukkit/spigot/mcpc+/cauldron build starting from version 1.2.5-R5.0
Version: 4.14.2
Features:
Note: all feautures except autosave are disabled by default.
- Performs a world and players data saves (similar to save-all in console)
- Performs a world backups({server folder}/backups/)
- Performs some plugins data purge
- Performs autorestart at a defined time
- Performs restart at server crash
- Executes console commands defined in config automatically
- Warning messages
- Multi-World Support
- Configurable messages
- Option to disable broadcast message
Documentation:
Note: Configuration can only be reloaded by built-in commands
AutoSaveWorld have many features:
1)AutoSave - saves your worlds and player inventory.
AutoSave documentation page
2)AutoBackup - backups your worlds
AutoBackup documentation page
3)AutoPurge - purges some plugins data
AutoPurge documentation page
4)AutoRestart - restarts server at a defined time
AutoRestart documentation page
5)CrashRestart - restarts server if it crashes
CrashRestart documentation page
6)AutoConsoleCommand - automatically executes console commands
AutoConsoleCommand documentation page
7)WorldRegen - starts server with a fresh map but preserves some plugins territory claims
WorldRegen documentation page
8)PluginManager - load, unload, reload plugins using commands
PluginManager documentation page
Messages config explanation:
Messages configuration
Additional commands:
/asw help #displays help for all comands Permission:autosaveworld.help
/asw reload #reloads config.yml and configmsg.ymlPermission:autosaveworld.reload
/asw reloadconfig #reloads config.yml Permission:autosaveworld.reloadconfig
/asw reloadmsg #reloads configmsg.yml Permission:autosaveworld.reloadmsg
/asw version #displays AutoSaveWorld version Permission:autosaveworld.version
/asw info #displays AutoSaveWorld info Permission:autosaveworld.info
Note:All commands work if you are OP, console or have permission.
Note:Config can only be reloaded using config reload commands.
Dev builds and Source code
Develompent builds: jenkins
Source code: GitHub
@EnergyCraft
Support what? (æåø is what i see, i don't know what is it).
Great plugin man!. But could it support æåø?
Yeah the worlds being saved as a zip would help quite a bit.
@PAL18 Ok i will continue autosave part of plugin. Also i am currently working on compression(zip and freearc), just need some time to finish.
@Shevchikden
According to the Bukkit dev team, the new built-in save lags servers to the point of stalling, so yes you should continue development.
See "important notes" section of http://forums.bukkit.org/threads/craftbukkit-1-3-2-r1-0-is-now-available.102934/
Can you add compression to this plugin? (eg. compress the whole world as a single file)
Some sort of autosave was added to craftbukkit 1.3.2-R1.0. Do I need to continue autosave part of AutoSaveWorld or delete it?
Alright I figured it out. For some reason my server folder was saved to another location (\Desktop\SERVER) so when I went to load my server from the original path (\Desktop\Minecraft\SERVER) it loaded an old save.
I don't know how the folder copied or when I started running it from the Desktop folder but that's where it was saving. I probably did it on accident without noticing!
Phew
I am unable to find any sort of backups folder. Where is it stored? I noticed the config by default says
backup: enabled: false toextfolders: false disableintfolder: true
It seems like it wouldn't be saving any backups by default. So that means it somehow reverted while only AutoSaving. I am still trying to make sense of what happened. It clearly reverted 24-30 hours. It happened when i changed the interval of backup from 216000 to 86400 (24 hours). But I see now that I didn't enable backup. Is there a way to revert to a previous AutoSave? Somehow that seems to be what happened.
@caseyjamest 0_0 That's something strange. Check backups folder maybe you will find your world there. (How the hell the world reverted while server was working)
EDIT: SOLVED. Server directory was changed. :P
I added this plugin to my server and it rolled it back 2 DAYS. I lost about 12 hours of work building structures on my server! The AutoSave was working fine... then AutoBackup happened. It did the OPPOSITE of backup and rolled it back 2 days. HOW is this even possible? It clearly reverted to a very old save.
I need to know if there is a way to undo this. I just lost so much fucking work! /raaaage
@Mistic92 Both java 6 and 7 installed on server or installed java for wrong architecture. Delete java 6. (Why the hell check for java 7 is not working in this situation).
2012-09-27 12:58:17 [SEVERE] Error occurred while enabling AutoSaveWorld v3.8 (Is it up to date?) java.lang.NoClassDefFoundError: java/nio/file/Files at autosave.AutoSave.onEnable(AutoSave.java:143) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:365) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:265) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:247) at net.minecraft.server.MinecraftServer.i(MinecraftServer.java:296) at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:275) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:225) at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:140) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:378) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.ClassNotFoundException: java.nio.file.Files at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:44) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) ... 12 more
I hate this error when starting server. Autosave is not starting. I have to use /save toggle.
@adamwbb check all parameters by commands, then try to set backup it every hour, and then check, also version3.6 can't backup, so update it if you still have 3.6.
i got it to keep configuration but its not autobacking up like its supposed to. i have it set to back up once every day. heres the backup congiuration i had the last option on false and it still didnt back up.
backup: enabled: true interval: 86400 MaxNumberOfBackups: 10 broadcast: true toextfolders: false disableintfolder: true
no errors are sent to server and bvackup never even happens
@adamwbb
Use commands or edit file and then use comand /save loadconfig
i cant set up the autobackup file keeps reverting
@jd245
Warn time is both for backup and save (var.warntime)
Default backup interval in config.yml is 216000 seconds, which is 60 hours. I'm guessing it should be 21600, which is 6 hours. At least, I want a backup done more than every 2.5 days... Thought I'd mention it because it's easy to overlook the additional "0".
Also, I don't see a "warn time" in the config for backups, but the console reports the following:
It looks like there may already be something built-it for it since the above shows a warn time of "0". Also, in the configmsg.yml , there appears to be a warning message for backups:
Am I missing something in the config or misunderstanding something?
Thanks!
@Wakafanykai123 v3.6 has critical bug, so it can't backup folders. It 3.7 you can edit file backupextfoldersconfig.yml(see the exmple in text) and enable backup to ext folders.