SaveOnEmpty
SaveOnEmpty makes it possible to save your server at the moment it's empty. This way you can avoid the so called lagspikes caused by saving.
The plugin will check if there are more players online at the moment one of your players logout.
If there aren't any more players online, the plugin waits the specified time in seconds. If there are still no players online after the waiting period, it will save the world!
This plugin is specialized for small server, where there times there are now players online.
Installation
- Put the downloaded SaveOnEmpty.jar in your server's plugin folder.
- Reload or restart the server (/reload).
- Set the preferred amount of waiting time in seconds with "/soe timeout SECONDS" (default is 60).
Commands
- /soe - Shows the SaveOnEmpty help.
- /soe save-now - Save the world manually (Permission: saveonempty.save)
- /soe timeout SECONDS - Set the waiting time in seconds.
- /soe reload - Reload the config (only necessary if you changed the config.yml manually).
Permissions
- saveonempty.admin - Gives access to all functions.
- saveonempty.save - Gives access to manually saving (/soe save-now).
Configuration
- timeout: 60 - The waiting time in seconds.
-
View User Profile
-
Send Message
Posted Feb 10, 2014Perfect! works as intended now!
-
View User Profile
-
Send Message
Posted Feb 9, 2014Version 1.0 released Download will be available after approval
-
View User Profile
-
Send Message
Posted Feb 8, 2014@hintss
Ah, was setting the running variable to true again :) It's working now, gets cancelled right after a user logs in.
Added a few extra features to.
3 new commands /soe - Give main help info /soe timeout - Set the timeout in seconds /soe timeout 60 /soe reload - Reload the SaveOnEmpty config
Download will be available after approval
-
View User Profile
-
Send Message
Posted Feb 8, 2014True, It only works once...
Also if players come back, can you cancel the timeout immediately and not wait for the timeout.
something like I showed in an example
or something like that
EDIT: I took a peek, you are using a schedule so can you cancel it when someone logs in?
-
View User Profile
-
Send Message
Posted Feb 7, 2014@robinkuiper
You're setting SaveOnEmpty.instance.running to true when you start the timer, but you don't actually set it back to false after, so it'd only run once then never again.
-
View User Profile
-
Send Message
Posted Feb 7, 2014@MrAndu
Fixed it, now it will only run once when a player logs out.
File will be up after approval.
-
View User Profile
-
Send Message
Posted Feb 7, 2014Awh, off course... Will fix this tomorrow...
-
View User Profile
-
Send Message
Posted Feb 6, 2014@robinkuiper
I will check it out then and post feedback :)
EDIT:
Almost there, still 1 more issue to resolve,
When going out and in and out in waiting period and lastly out, it will start multiple instances and therefore does multiple saves,
Fix: Cancel immediately when someone joins.
-
View User Profile
-
Send Message
Posted Feb 6, 2014@MrAndu
Updated the plugin, had some checks wrongly placed. Let me know if there are more problems or if someone likes some extra features :)
Download will be up after approval.
-
View User Profile
-
Send Message
Posted Feb 6, 2014Needs tweaking still, the idea was: http://forums.bukkit.org/threads/save-all-when-server-empty.229363
It behaves differently, once it works as intendet it should be much better
right now the problems:
1. Prevents connecting while countdown active (it should allow to connect and cancel timeout)
based on console output it checks for players after timeout, should do it before timeout. Plus it halts all server activity - it should not.
-
View User Profile
-
Send Message
Posted Feb 6, 2014This will most definitely be used on my server since saving more frequently is now laggy as heck. I appreciate your hard work on this plugin, thanks!