Can someone please make an autorestart plugin? THAT WORKS!!!

Discussion in 'Archived: Plugin Requests' started by SeanLeapley, Jul 26, 2012.

  1. Offline

    SeanLeapley

    I have tried SimpleRestart and also AutoShutdown and they both have errors. I need a plugin that works that can restart server at a certain interval. My only problem is how do i time it so the server does not restart during a backup. I would have backup every hour and restart ever 2 hour but that would overlap. Can someone please also give me a working time scheduel where they NEVER in a billion years overlap?
     
  2. Offline

    np98765

    RemoteToolKit... You can schedule when you want the restarts, either using intervals or the system time.
     
    joehot2000 likes this.
  3. Offline

    SeanLeapley

    I have tried this but can not get it to work. Also why does dynmap not work? I can type in http://localhost:8123 but not the server ip...and our server IS portforwarded so anyone can reach it

    I am guessing that there is a network issue why i can't make dynmap work or remotetoolkit because I have tried them out a lot before and they NEVER connect.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 27, 2016
  4. Offline

    zecheesy

    Hey, maybe you should ask for help from users that KNOW how to work those plugins.
    Obviously lots of people know how to use Dynmap or those restart plugins.
    Just ask :) (btw don't ask me cuz idk how to use em)
     
  5. Offline

    SeanLeapley

    Ok. If I knew a bunch. Also many server admins don't want to help because they think helping me will make my server better than theirs or make a "competition" so they think if it like a race. They won't help the slow guy. On bukkit.org I know does not apply and ppl will help that is why I am asking here. Also I know how to use the restart plugins. They are giving me errors. Both of them. I am not so bad as to not know how to install a plugin improperly. I have installed many VERY good plugins that work, but these just wont.
     
  6. Offline

    JayzaSapphire

    You could actually have it restart every 2 hours and say 5 minutes, the backup would've finished just before the restart, and if other people can reach the dynmap from your server-ip then that is good, if not you might not of portforwarded/set up dynmap properly, try read it's config. And for your dynmap, it doesn't work (for you, and anyone else using your internet) with your server-ip because your on the network.
     
  7. Offline

    lol768 Retired Staff

    Why would you do this with a plugin? What operating system are you using on your server?
     
  8. Offline

    -_Husky_-

  9. Offline

    SeanLeapley

    I will test this. Thanks!
     
  10. Offline

    Reptar_

    Another great plugin by -_Husky_-!

    ** EDIT **
    Actually, I don't really understand how you did the instructions for mac.
     
  11. Offline

    Nucious

    Like a macro script.. mmk.
     
  12. Offline

    -_Husky_-

    Well for mac, have the startup script (assuming its a .command file) named launch.command

    Reptar
     
  13. Offline

    breezeyboy

    I though i would try it and get this error

    Code:
    2012-07-28 20:19:22 [INFO] [ServerReboot] Disabling ServerReboot v1.0
    2012-07-28 20:19:22 [SEVERE] java.io.IOException: Cannot run program "ServerReboot.jar": CreateProcess error=193, %1 is not a valid Win32 application
    2012-07-28 20:19:22 [SEVERE]    at java.lang.ProcessBuilder.start(Unknown Source)
    2012-07-28 20:19:22 [SEVERE]    at java.lang.Runtime.exec(Unknown Source)
    2012-07-28 20:19:22 [SEVERE]    at java.lang.Runtime.exec(Unknown Source)
    2012-07-28 20:19:22 [SEVERE]    at java.lang.Runtime.exec(Unknown Source)
    2012-07-28 20:19:22 [SEVERE]    at code.husky.ServerRebootListener.onDisable(ServerRebootListener.java:12)
    2012-07-28 20:19:22 [SEVERE]    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
    2012-07-28 20:19:22 [SEVERE]    at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:363)
    2012-07-28 20:19:22 [SEVERE]    at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:400)
    2012-07-28 20:19:22 [SEVERE]    at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:393)
    2012-07-28 20:19:22 [SEVERE]    at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:251)
    2012-07-28 20:19:22 [SEVERE]    at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:409)
    2012-07-28 20:19:22 [SEVERE]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:489)
    2012-07-28 20:19:22 [SEVERE]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    2012-07-28 20:19:22 [SEVERE] Caused by: java.io.IOException: CreateProcess error=193, %1 is not a valid Win32 application
    2012-07-28 20:19:22 [SEVERE]    at java.lang.ProcessImpl.create(Native Method)
    2012-07-28 20:19:22 [SEVERE]    at java.lang.ProcessImpl.<init>(Unknown Source)
    2012-07-28 20:19:22 [SEVERE]    at java.lang.ProcessImpl.start(Unknown Source)
    2012-07-28 20:19:22 [SEVERE]    ... 13 more
    
     
  14. Offline

    -_Husky_-

    What OS?

    And is server reboot.jar in you server directory

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 27, 2016
  15. Offline

    breezeyboy

    huh... im using windows XP (64bit) and yeah the reboot.jar was in my server directory
     
  16. Offline

    -_Husky_-

    Ohhhhh... I may of compiled it in a different version of java.. Let me check in the morning
     

Share This Page