Crash Restarter
Does your server crash randomly and unexpectedly? Use this plugin to Detect if your server has Crashed!
This plugin will restart your server within 1 minute of it crashing.
My server would crash every couple of hours, and if I/an Admin wasn't online it would stay down for multiple hours. So i decide to write this plugin.
V2.0+
NEW WAY OF DETECTION!
This version gets rid of the old code of it being based on player interactions etc. I've been searching and testing for a very long time I've finally figured it out! It can be done!
How it now works
When your server crashes, it stops all plugins(even the old version of this plugin). But after a long hard struggle to find a way, I have finally figured it out! When the server crashes the main part of this plugin stops working, which stops triggering the external part of the plugin, which in turn detects within 1 minute whether the main part of the plugin is working, and if it doesn't it runs the command set in config.
Note:
You will need to edit your launch.bat to the following:
:start java -Xmx1024M -Xms1024M -jar craftbukkit.jar goto start
Where 1024M is the amount of memory you use.
For BukkitGUI users
For MultiCraft users
Ask your hosting company for your server to restart as soon as it stops.
Example
Example crash
Note: Example was done with a 3 minute detection, I lowered it to 1 minute.
Config
Commands
/cr : Tells the sender if the plugin is running.
Compatability
V2.0 is compatible with all minecraft versions(tested back to 1.2.5).
Metrics
Crash Restarter V2.0 uses Hidendra's plugin metrics system.
Metrics record and sends:
- The server's Java version
- The OS version/name and architecture
- Whether the server is in offline or online mode
- The amount of CPU cores
- Server Location
- Game Version
- Server Software
If you wish to disable Metrics, you can do so by opt-ing out, which you can do in the Metrics config file under /plugins/PluginMetrics/
To Do
Tell me, and ill see what i can do.
Check out my other plugins for great features!
@Thomasice
Thanks for reporting this. I realise why, on the disable of the plugin I didn't stop the timer. So on reloads it will restart the server. I will fix ASAP.
Thanks,
Dablakbandit
What ive realised about this plugin that, each time i reload the server, this plugin crashes my server.
@FightManiac
I have not tested, but I believe so.
Thanks,
Dablakbandit
Would it restart if I crash it by placing 100.000.00 TNT with WolrdEdit?
@Sorkaras
No thank you :) .
Thanks,
Dablakbandit
@Dablakbandit
Thank you sir!
çalıntı konu kapatıldı yigenim.
@Sorkaras
http://youtu.be/KYM_VXRGxNg?t=6m28s
This will do it :) .
Thanks,
Dablakbandit
So I use the BukkitGUI and I was wondering, how you set it up properly, you know with the launch.bat thing not being needed.
Version 2.0 Available Soon!
Please tell me if it works. I have tested on some servers.
Also!
Any version of Bukkit compatible!
@yoshi435
I don't understand?
(I Translate Using) When I make True a small letter?
100+ downloads on V1.3! Thanks to everyone for downloading!
Dablakbandit
@shonalkumar
Thanks for the feedback!
an awesome plugin!!!!!! would be nice for 1.7.2 :)
@Catch2223
Alternatively you could set the message to go off at 0 minutes and so would never actually send the message.
@Catch2223
Have you tried debugging?
It shows the message even if the timer should have been reset, it shows it every time but I am using a quarry to prevent it from restarting
@Catch2223
That's because no-one has reset the timer?, Its like a fail safe, to make sure that the server hasn't crashed
Hmm just tested it on a local server and noted something that could annoy people. Even if the server hasn't crashed it displays the speak to reset timer message every time it hits the announce time :/