Filled Dev needed! Auto restart plugin. Custom

Discussion in 'Archived: Plugin Requests' started by pilot3101, Oct 6, 2013.

  1. Offline

    pilot3101

    Hello,

    I am looking for a custom plugin that is a auto restart plugin that is configurable so you can set the time you want it to auto restart. For example: every 2hours or something. Can anyone make this custom for me? Thanks!! I don't have a set time. Anytime is fine. :)
     
  2. Online

    timtower Administrator Administrator Moderator

    pilot3101 Dedicated server with control panel or home hosted? Multicraft can do this on its own, and a modified run.bat together with a plugin that will stop the server can do this
     
  3. Offline

    pilot3101

    It is home hosted.
     
  4. Offline

    sucer123

    Modify your .bat file
    and then when ever your server shut's down it should start back up :)

    Example:

    Code:
    :start
    java -Xmx1024M -Xms1024M -jar Bukkit.jar nogui
    goto start
     
  5. Offline

    Mathias Eklund

    I'd recommend sucer123's way :)
     
  6. Offline

    pilot3101

    Can you show me where im supposed to put it?
     
  7. Online

    timtower Administrator Administrator Moderator

    pilot3101 Well, you have a file what you use to start the server, open that with notepad, put the code of sucer123 in it, save it, run it, done, have a [cake]
     
  8. Offline

    pilot3101

    below PAUSE?
     
  9. Online

    timtower Administrator Administrator Moderator

    pilot3101 No, you just replace the thing
     
  10. Offline

    pilot3101

    Replace the pause? and place it there?

    Can you post a image
     
  11. Online

    timtower Administrator Administrator Moderator

    pilot3101 Just change the entire file into that code, replace everything in it
     
  12. Offline

    pilot3101

    But how will it know what the jar file is running?

    like what version craftbukkit is
     
  13. Online

    timtower Administrator Administrator Moderator

    pilot3101 Well, remove the "nogui", and that is the "Bukkit.jar" that is the file that will be ran
     
  14. Offline

    pilot3101

    I dont see that anywhere. Lol
     
  15. Online

    timtower Administrator Administrator Moderator

    pilot3101 Post your current batch file and I will modify it for you
     
  16. Offline

    pilot3101

    Okay one sec I'll do it in a minute or two
     
  17. Offline

    Garris0n

    Wow...I would've ragequit by now.
     
  18. Online

    timtower Administrator Administrator Moderator

    Almost......
    pilot3101 That are 45 minutes
     
    klosjaarrr likes this.
  19. Offline

    klosjaarrr

    pilot3101 Just name your .jar file craftbukkit.jar and open notepad, put this code in it:

    :start
    java -Xmx1024M -Xms1024M -jar Bukkit.jar nogui
    goto start

    Save it as start.bat (remember to choost 'All files', not .txt) and put this file in the same directory as your craftbukkit.jar file, then double click start.bat and you're ready to go.
     
  20. Offline

    AndyMcB1

    klosjaarrr That's if his .jar is called "Bukkit.jar"

    That being said - it isn't really what he wanted in his post.
     
  21. Offline

    pilot3101

    Hey sorry here it is:

    Echo OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit-1.6.4-R0.1-20130923.182200-5.jar
    PAUSE
     
  22. Online

    timtower Administrator Administrator Moderator

    AndyMcB1 But it will do what he requested
    Code:
    :start
    Echo[/USER] OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit-1.6.4-R0.1-20130923.182200-5.jar
    goto start
    pilot3101 Also: Install java 7...
     
  23. Offline

    pilot3101

    I have java 7
     
  24. Offline

    AndyMcB1

    Restart every x hours?
     
  25. Offline

    pilot3101

    SO i copy and paste that code into my run.bat? I delete what was in there and paste that?
     
  26. Online

    timtower Administrator Administrator Moderator

  27. Offline

    AndyMcB1

  28. Offline

    pilot3101

    So ill change everything in the run.bat to that?
     
  29. Online

    timtower Administrator Administrator Moderator

    I will say yes
     
  30. Offline

    pilot3101

    Okay. Thanks!
     

Share This Page