Restarting Server...

Discussion in 'Plugin Development' started by wmcmahon, Aug 11, 2011.

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

    wmcmahon

    Simple question,

    How do I get bukkit to restart the server -- I tried getServer().reload; but that seems to just reload the plugins... is there a way to trigger a server restart?

    Thanks!
     
  2. Offline

    thehutch

    I believe if you type reload into the console it reload the server otherwise if you reloaded the entire server then it would have to shutdown.
     
  3. Offline

    zeoed

    I don't believe you can actually restart the server with bukkit nor the vanilla server, but to get closer to solving your issue (If there was a restart command in place) you could use getServer().dispatchCommand(sender, "restart"); to restart the server via your plugin.
     
Thread Status:
Not open for further replies.

Share This Page