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!
-
View User Profile
-
Send Message
Posted Aug 19, 2015Can we expect a new update for crash restarter ?
-
View User Profile
-
Send Message
Posted Jul 16, 2015@BoomLikeADuck
When i ran a server ages ago which used multicraft i asked their support for the server to automatically start once it stopped. Which meant this plugin could work :)
-
View User Profile
-
Send Message
Posted Jun 12, 2015I'm confused does it work when you're using a hosting service if so then why does it say "Ask your hosting company for your server to restart as soon as it stops." if the plugin restarts it as soon as it stops?
-
View User Profile
-
Send Message
Posted Dec 5, 2014Hey, can you do for Cauldron ? And on a .jar please my hostinger doesn't accept .bat :'( Thanks
NB: I'm french escuse-me for my language.
-
View User Profile
-
Send Message
Posted Sep 27, 2014If your running BungeeCord Dont even put the -o false
-
View User Profile
-
Send Message
Posted Sep 3, 2014@GamingPuppy
What operating system are you using?
Thanks,
Dablakbandit
-
View User Profile
-
Send Message
Posted Sep 2, 2014This is what my start file looks like; where should I edit it? this is for 1.7.9.
java -Xmx4096M -jar craftbukkit.jar -o true PAUSE
The PAUSE is on the second line
-
View User Profile
-
Send Message
Posted Jun 26, 2014Hi could u send me a copy of this on skype for the spigot version
Skype name theseals.globe
-
View User Profile
-
Send Message
Posted May 6, 2014@isteinvids
I have not used MCPC+, this should detect the crashes and if the server loops it will start up again after this plugin forces the server to shutdown.
Thanks,
Dablakbandit
-
View User Profile
-
Send Message
Posted May 6, 2014Does it work with MCPC+?
-
View User Profile
-
Send Message
Posted Apr 29, 2014@RCKing57
I have never used BukkitGui sorry, the reference I made above was only because people were having trouble with the fact it would detect the crash yes, but then wouldn't startup. Maybe contact the developer that made it and ask?
Thanks,
Dablakbandit
-
View User Profile
-
Send Message
Posted Apr 29, 2014If I have BukkitGui and I did what the video said (starting the server if it stopped), how do I stop the server for real? (Like closing it) Thank you
-
View User Profile
-
Send Message
Posted Apr 25, 2014@digimbyte
File uploaded just waiting on approval.
Thanks,
Dablakbandit
-
View User Profile
-
Send Message
Posted Apr 21, 2014@digimbyte
I will write up a quick fix for this as soon as I have some spare time, and make the command editable in config.
Thanks, Dablakbandit
-
View User Profile
-
Send Message
Posted Apr 20, 2014Well, I tried Disabling the /cr command, I even renamed it to CRASH in the plugin.yml but it didn't work
/CR conflicts with CommandRank which is a powerful ranking system that the users need to use if they wish to check their ontime or kills, its also a command admins/staff use.
at the moment, that command is stolen by CrashRestart since we moved to it from AutoSaveWorld which was unstable for our custom server.
We're using MCPC+ for 1.5.2 Hexxit.
its a great little plugin but this simple command is too simple and conflicts easily
-
View User Profile
-
Send Message
Posted Mar 22, 20141000 Downloads!, Thanks everyone for downloading.
Dablakbandit
-
View User Profile
-
Send Message
Posted Feb 15, 2014They cant do that unfortunately since it's shared hosting.... Does it work without the startup script?
-
View User Profile
-
Send Message
Posted Feb 15, 2014@HaltsLongBow
If you own the Multicraft you can edit the start up command but if you don't own it just submit a ticket asking your host if they could add it for your server :)
-
View User Profile
-
Send Message
Posted Feb 14, 2014Would this work if you have shared hosting since I use multicraft and you can't change the startup script on it.
-
View User Profile
-
Send Message
Posted Feb 3, 2014It has been fixed in the latest version.
Thanks,
Dablakbandit