Restart Server with my plugin

Discussion in 'Plugin Development' started by MinecraftShamrock, Apr 29, 2013.

Thread Status:
Not open for further replies.
  1. Hi there.
    Is there a way to restart my server with my plugin?
    Or something like use another plugin that can do that in my plugin?
    Thanks in advance
     
  2. Offline

    Superkabii

    You can't "restart" a server with only a plugin really. Once the plugin would shut down the server, what would start the server back up? The server isn't running, and therefore the plugin isn't running to start the server.

    It's possible only with external server wrappers or something running outside Bukkit itself.
     
  3. Offline

    Minnymin3

    Server cannot be restart without the use of an external script. When the server stops, all processes stop.
     
  4. Offline

    ZachBora

    Only thing you could do is like start a batch or another jar file that waits for the server to be offline then this new process starts your server with the exact path to the server start. You can't do anything that will be compatible with everyone.
     
  5. And how could I code that?
     
  6. Offline

    ZachBora

  7. Offline

    CubieX

    There are alot of restart-scripts available on BukkitDev. Just use the search.
     
Thread Status:
Not open for further replies.

Share This Page