[INACTIVE][ADMIN/MECH/GEN] RestartNow v0.3_2 - Full server restarts [818 - 1060]

Discussion in 'Inactive/Unsupported Plugins' started by aidan matzko, Jun 5, 2011.

  1. RestartNow - Complete Restarts:
    Version: v0.3_2

    When i first joined bukkit, I was very surprised by the fact that there was no way to restart the server. Yes, there are toolkits and modified .bat's or .sh's, but why isn't there just a plugin? That's what this is for.


    Features:
    • Full Server Restarts.
    • Compatible with any OS!
    • Compatible with any startup script.
    • Automatic restarts every x minute(s)!
    • Restart the server when there are no players on the server!
    • Reload the server when there are no players on the server!
    • Permissions/Group Manager support
    • Commands include:
      • /restart -- restarts the server
      • /schedulerestart <time + time unit> -- cancels all planned restarts and schedules the server to be restart in <time + time unit>
      • /resettimers -- cancels every planned restart
      • /kickall -- kicks everyone from the server, including yourself if its not from the console
      • /saveworlds -- saves all worlds
      • /reloadplugin <plugin> -- reload plugin X
      • /restartnow <update> -- displays general information and updates the server
    To Do


    • Wrapper -- High
    Known Bugs

    • After a restart linux users can't see the gui(it's still running!)
    • Does not work with MCMA(use its /restart command, not fixable by me)
    • /restartnow update does not download 0.3_1, please manually update till i get back
    • Update times are slightly screwed up (sorry :/) Will be fixed ASAP
    • You can't have a space from C:/(or your default drive) to craftbukkit.jar. A fix will be out soon
    • Configuration options still give an error when the config is setup wrong...
    Downloads

    Jar
    Source Code

    How to Install:
    There is now a semi-complete wiki! hopefully this helps clear up any confusion.
    Wiki Here
    LINUX BUG
    In linux if you restart the server, there will be NO console gui to type commands into. The server is still running, there is just no GUI. I can make it a simple light weight wrapper, comment on if you would rather have a console gui or a wrapper!

    Changelog:
    • Version 0.3_2
      • Very important bug fix in restartNowMain.jar
    • Version 0.3_1
      • Fix notification times(again!)
      • Test updating from the console! Type /restartnow update ;)
    • Version 0.3
      • Huge update! Please delete your configuration file
      • API! Check the wiki for more information
      • Auto updating!(Give a huge thanks to @Adamki11 , he created the lib, and I modified to suit my needs)
      • Auto extracting! No more pesky zip file
      • Completely reworked structure.
      • Broadcast times FIXED!
      • Other various bug fixes
      • Added a github wikipedia
    • Version 0.2_1
      • Fix the Reload-Server problem
    • Version 0.2
      • New command. /reloadplugin <plugin name>. Pretty simple, reloads that plugin. Must be the same exactly spelling as the plugin when listed in /plugins
      • The command /schedulerestart <time> is changed to /schedulerestart <time + time unit> the time units are same for config as they are for this command.
      • Huge update for the config. Look at the documentation again ;)
      • Broadcast with X minutes left till restart!
      • The linux server is kinda fixed. Checkout above
      • No player reload.
      • Much more stable.
    • Version 0.1_2 -- Note quick reupload for Ubuntu users to change the way the .sh is opened
      • Full fix for Windows users. Upload now includes a bat file(windowsonly.bat) that is required for windows users.
    • Version 0.1_1
      • Fixed the duplicate command prompt error on Windows.
    • Version 0.1
      • It's out!
      • Added some changes from the beta version such as more commands, another safeguard, and improved permissions handling.
    Error Reports:
    • Please post feature requests/bugs to github, makes it easier to get them all!
    • If you would like to submit a bug(github/forum), please use this method:
    • Before you do anything, open a command line
    • cd to the server directory
    • type java -jar restartNowMain.jar "<name of bat or sh>" "<os name> "1"
    • Code:
      Config File
                                     
                                     The .sh or .bat you use to start the server
                                     
                                     What happened when you did the steps above with a command line?
                                     
     
  2. Your welcome :p 0.3 will come soon, promise, although right now Herobrine has been the focus. Also, this should work with 1.7.2, but i haven't tested. If someone could maybe test some basic features and tell me if it works, that would be great :D
     
  3. Offline

    Pim1234

    this sucks... i had 7 hours downtime because of this plugin!
    it does the same as "stop", only then 7 hours before i wake up!
    i admit i didn't look in the config, but still, it should restart right? not stop?
     
  4. uhhhh....
    What command did you use?
    Paste your configuration file.
    What happens when you run restartNowMain.jar from the command line?
    Whats your operating system?
     
  5. Offline

    sagethor

    @tips48
    Just installed this plugin. Looks great. However, do you know of any script I could run for the CraftBukkitStarter.bat so that when the server crashes, it automatically restarts itself?

    I've been having issues of the server randomly freezing up and players being booted and I have to restart it manually. It would be especially helpful, thanks!
     
  6. Offline

    FuzzyWuzzie

    @sagethor

    Try adding a loop around your java-launching code in your CraftBukkitServer.bat file, so that it looks something like this:
    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    :start
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xincgc -Xmx1G -jar craftbukkit-0.0.1-SNAPSHOT.jar
    goto start
    That way, whenever the server goes down, it will automatically restart itself. Not sure if this will screw up this restart plugin, however. Good luck!
     
  7. Offline

    FuzzyWuzzie

    *shameless self promotion*
    My plugin already does that..
    */shameless self promotion*

    But whatever, if users of your plugin benefit from it, then go right ahead.
     
  8. :D
    and ok....
     
  9. Offline

    wirher

    Genius! Thank you for this plugin :D
     
  10. Offline

    sagethor

    @FuzzyWuzzie
    Appreciate the support on that. Thanks for the help and heh, I don't mind them shameless plugs. ;)
     
  11. Offline

    Chasingu

    I was looking through and saw that it wanted a start up script. What if I type it in manually each time I want to start it?
     
  12. what? I doubt that would work...
     
  13. Offline

    Chasingu

    So I have to have a script for this?
     
  14. i don't get what you mean. a script to do what?
     
  15. Offline

    Chasingu

    Startup script.
     
  16. you don't have a startup script?
     
  17. Offline

    Chasingu

    No. I type it in manually since I can not seem to get it to actually find CraftBukkit.jar.
     
  18. :O
     
  19. Offline

    Chasingu

    So do I need one or can I use this without one...
     
  20. you need one.
     
  21. Offline

    Chasingu

    Thanks for the hour long support. Ill make one.
     
  22. ok. Sorry for not being able to answer your question faster
     
  23. Offline

    chaseoes

    Can you provide an example bat.sh script?
     
  24. java -jar craftbukkit.jar
     
  25. Offline

    Mcmaxx

    So everything was fine at first, 'till I found out today that sometimes the plugin simply stops the server [Press any key to continue..]. But before the message, it disabled the plugins, and re-enabled them. Finding out now, I realized the server has been down for 8 hours. That's bad.
    Any suggestions? Should I have done something right after startup that I missed?
    Help.. D:
     
  26. Offline

    craztheking

    Really like this idea, am going to download and try it out
     
  27. does it ever work?
    @craztheking thanks!
     
  28. Offline

    craztheking

    Error:
    unable to query server state

    Thats what i got when i restarted..

    then i self restarted with mymcadmin web
    and got
    WARNING: duplicate user

    need any other info hit me up.. hopefully u can tell me whats up?
     
  29. I have absolutely no clue. Any chance you could try it on a local test server without mymcadmin? thats the only reason I see why it wouldn't work, but it should be compatible.
     
  30. Offline

    craztheking

    im getting of for a little bit then i will test this again.
    and see what i can do running on plain bukkit
    *else goes wrong u can just state it dosent work with mcmyadmin, or try to update it to work*
     

Share This Page