CrashRestart Plugin Needed

Discussion in 'Archived: Plugin Requests' started by ColossalMc, Jul 26, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    ColossalMc

    Hey there. I am the owner of a flans mod server. Since we use flans there are a lot of crashes and I cant be online all the time to restart the server. So I was wondering could anyone make me a restart plugin please. Thanks, ColossalMC
     
  2. ColossalMc Bukkit doesn't support mods so please take this question to where you get this mod supporting Bukkit from.
     
  3. You need to change te RUN.bat file to the following:

    Code:
    @echo off
    :start
    java -Xmx1G -Xms1G -XX:MaxPermSize=128M -jar <name of server jar file>.jar -o true
    goto start
    You can change the arguments to your wish!
    If you want a little delay between the stop and start of the server (i recommend you to do so) use this code:

    Code:
    @echo off
    :start
    java -Xmx1G -Xms1G -XX:MaxPermSize=128M -jar <name of server jar file>.jar -o true
    ECHO Reboot in 10 seconds...
    timeout /T 10 >nul 
    goto start
    I hope this helped you!
     
  4. Online

    timtower Administrator Administrator Moderator

    Cooltimmetje Yeah, that won't work for crashes I believe. Also note the comment above yours.
     
  5. Offline

    PandazNWafflez

    bwfcwalshy timtower All Minecraft servers, modded or not, can crash sometimes (mainly because Minecraft's code is awful, and the other reason is people finding exploits), so he has a perfect right to ask this question IMO.
     
    Cooltimmetje likes this.

  6. I know but he is not asking WHY the server crashes, but how he can make it starting the server again after a crash automagically. And this will work because after a crash the batch script keeps on running and just returns to the beginning of the file :)
     
  7. Online

    timtower Administrator Administrator Moderator

    The jar doesn't always stop though, sometimes is just gets in a dead lock.
    PandazNWafflez http://forums.bukkit.org/threads/per-rank-inventory.295626/#post-2692967
    http://forums.bukkit.org/threads/citizens-gsm-help.294777/#post-2685195
     
  8. Offline

    Iroh

    Locked.
    Seek help where you acquired your server mod.
     
Thread Status:
Not open for further replies.

Share This Page