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
@AntZaro Doesn't matter. Dev builds have some changes to worldregen system and a fix for auotsave disablestructuresaving function.
@swatscraft Your script starts your server as soon as it stops, remove that.
my script is this: while true do java -Xms2G -Xmx4G -XX:MaxPermSize=128M -jar spigot.jar sleep 5 done
run the server with the command "bash run.sh"
but when I put "asw forcerestart" my server starts twice
somebody could help me? Thanks
I'm still using v4.14.2 on my server running 1.9. It seems to be working fine, but should I be running the latest Jenkins builds instead? Not sure what would be recommended.
@semirotta Make sure that you have regioncachedump enabled, or it won't really save chunks to disk.
I just noticd, when the thing says "saving" , it doesn't even save the world. My server crashed for some reason 2~ minutes after the world was saved with this plugin and when I restarted the server again; it did not even save. It went back 15 minutes and how do I know this? I had just built stuff in that time and it had gone back a lot.
It says it saves, it doesn't. Do not use this plugin since it doesn't even work properly.
WorldRegen is working with multicraft?
@snipershotmaster
Yeah no, I have no idea what you mean. I don't understand these things and I just would have wanted to have auto-restart since after 8 hours the server starts to be bit laggier than normally and I can't be there to auto-restart it manually every time :(
@semirotta
If you read the autorestart documentation you would understand. " scriptpath: start.sh #path to your server startup script, even if AutoSaveWorld won't find, it it will still try to restart server."
.sh files are unix (linux) shell executables files, they are the equivalent (but much more powerful) of bat files on windows. So you need to run it from a linux console, just typing its name the same you do with bat files on windows. (http://stackoverflow.com/questions/13805295/whats-a-sh-file)
You aren't supposed to put a link to the server's jar. The script path is there so the plugin can launch the .sh so the server can restart by an outside source.
Questio; Why doesn't this work?
autorestart:
enabled: true
broadcast: true
time:
- '12:00'
- '16:00'
- '20:00'
- '24:00'
- '04:00'
countdown:
enabled: true
broadcastonsecond:
- 60
- 30
- 10
- 9
- 8
- 7
- 6
- 5
- 4
- 3
- 2
- 1
commands: /save-all
scriptpath: 'ftp://[email protected]/craftbukkit-1.9-R0.1.jar'
juststop: false
As I have server from host provider and thats the scriptpath I got from copying the craftbukkit url from ftp. It does not seem to work, it just provides this:
[AutoSaveWorld] Startup script not found. Restarting without it. This may work strange or not work at all
How the heck is this supposed to work?
@hutt132 Disable structure saving disabler for now.
I keep getting a lot of these errors on server shutdown with Spigot 1.9: http://pastebin.com/LVGZ3ggZ
how can i define the restart script's path if i has a dedicated host?
@infered5 Most of those settings are effective only at server start, changing them after that won't do anything. But you can use a decompiler and look into PropertyManager class.
Is there a way to force refresh server.properties without restarting the server?
@maclarenss Not happening, i can delete seed file, but generating new will be too version dependant.
Pls add options /asw regenworld world -seed xxxxxxxxxxxxxx ty
@MasterMithrandir Really bad, that's the most common case for server freezes/crashes.
@Shevchikden
How bad are these connections to main server thread? Nearly all my plugins get a warning from AutoSaveWorld... I'm starting to get curious, should I just go around telling plugin developers to stop accessing main server threads because AutoSaveWorld considers it negative for servers?
@Shevchikden
That's very usefull to support landlord :)
Have you planned an update ?
Ps: Happy new year :)
@Shevchikden
How do i stop it?