Restart after shutdown

Discussion in 'Archived: Plugin Requests' started by MinerMovies, Aug 22, 2014.

  1. Offline

    MinerMovies

    I need a plugin that when the server is shutting down, will trigger a thing that will restart the server, after shutdown. I am using Multicraft, if that is helpful... :p
     
  2. Offline

    timtower Administrator Administrator Moderator

    MinerMovies Multicraft listens to commands. Certain commands will restart the server, /stop will just kill it. Maybe an alias for /stop so it will fire multicrafts /restart ?
     
  3. Offline

    MinerMovies

    Hmm... Maybe, but can you override a default server command?
     
  4. Offline

    timtower Administrator Administrator Moderator

    Any plugin that would use a server command would override it
     
  5. Offline

    MinerMovies

    How do you make an alias in java?
     
  6. Offline

    timtower Administrator Administrator Moderator

    Commands.yml, my plugin DynamicAliases in my signature. Or any other command alias plugin.
     
  7. Offline

    ZanderMan9

    Ooor, you could use a simple batch file that would completely shut it down and restart it...
    Code:
    @ECHO OFF
    :res
    java -Xmx(your value) -Xms(your value) -jar craftbukkit.jar -o true
    echo Would you like to restart or close? (r/c)
    :err
    set /p restart="> "
    if %restart%==r goto res
    if %restart%==c exit
    echo Error: response was neither r or c.
    goto err
     
  8. Offline

    timtower Administrator Administrator Moderator

    ZanderMan9 Ooor, I think you missed the part where he said that he is using Multicraft. You can't add custom scripts there.
     
  9. Offline

    ZanderMan9

    timtower Sorry, don't know much about multicraft. I don't know why he couldn't change it if he has FTP access. I think Multicraft has a built-in FTP, right? So run.bat could be modified there?
     
  10. Offline

    timtower Administrator Administrator Moderator

    ZanderMan9 You can also protect files with FTP. That file is protected, and if not: server could be wrapped.
    No possible way to change the run.bat on it, can't even read it.
     
  11. Offline

    Alster551

    I don't know if its a hidden feature, but i use a multicraft server and when it stops it automatically restarts..
     
  12. Offline

    timtower Administrator Administrator Moderator

    Not hidden at all
     
  13. Offline

    Alster551

  14. Offline

    ZanderMan9

    timtower That's what I despise about hosts. You can't modify anything. You have to use some crap like Multicraft, which gives you very little power over your server. And even if they give you FTP they have it so locked up it's ridiculous.

    Also, what exactly is "wrapping a server"? I'm afraid I'm not much of an expert on that sort of thing.
     
  15. Offline

    timtower Administrator Administrator Moderator

    /stop is kinda messy with that as it really stops the server without restarting ( if I recall correctly from ~a year ago )
    /restart is in multicraft and will fully stop and start the server.
    It is having the server encased in other software to contain and control it.
     
  16. Offline

    ZanderMan9

    So another bit of software starts the server and restricts the program somehow? I don't see how much a server could be changed without modifying the actual code of it.
     
  17. Offline

    Alster551

    I can confirm after doing /stop the server will restart.
     
    timtower likes this.
  18. Offline

    timtower Administrator Administrator Moderator

    ZanderMan9 FTP can be blocked with FTP.
    And try input and output streams. Those control the server. I can make a wrapper that will run the server and would send the logs and commands to MySQL.
     
  19. Offline

    ZanderMan9

    Ah true. I could make a batch file that would redirect the standard output to a file of other program. Would that be considered a "wrapper"?
    Edit: timtower
     
  20. Offline

    timtower Administrator Administrator Moderator

    ZanderMan9 Not very useful to let the batch file handle that if you want to send it to a different program if that is even possible.
    We are getting offtopic here. I quit with this conversation. If you want to talk about it: post something on my profile page. I don't want to see a PM about this.
     
  21. Offline

    MinerMovies

    Um, I own the host lol, I have all the access :p
     
  22. Offline

    ZanderMan9

    In that case, use the above batch file. :)
     

Share This Page