[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. Offline

    morizuki

    :D ok thanks for the help :D
     
  3. @morizuki yep ;)

    Everyone else
    Updated to 0.2.1
    • Fix for if you had the server set to reload in minutes

    Did that fix it for everyone?

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

    bill45

    It did fix it for me. So I think it did, thank you.
     
  5. Awesome ;)
    Next update will be Automatic reloads + API(secret project xD)
     
  6. Offline

    bill45

    Got a question, is there a way to make it so we don't have to put title MC in the .bat? It seems one of the plugins I tested with it(ItemCraft) uses the title to check the version and notices the MC in the title and claims that the version I have for ItemCraft is not up to date.
     
  7. Hmm. Well, without the title MC part there will be a bunch of cmd's laying around. Sorry, i don't think theres any way to fix this :confused:
     
  8. Offline

    bill45

    Ok, was just wondering. I kind of figured it was needed for that, but had to ask. Not that my cmds close after restart anyway though.
     
  9. they don't close after restart? :confused:
     
  10. Offline

    bill45

    Nope they stay open I posted my .bat code a little while back. No idea why it wont close after restart.
     
  11. thats really weird. what does the top(title) of your console say when its open?
     
  12. Offline

    bill45

    All the title says is "MC"
     
  13. Then it should most certainly work.
    pastebin your windowsonly.bat again please?
     
  14. Offline

    bill45

    Code:
    taskkill /fi "windowtitle eq MC"
    start run2.bat
    exit
    #change <bat name> to the bat you use to start the server. Thanks!
    my .bat is called run2.bat btw.
     
  15. i see no reason why it wouldn't exit out of the command prompts. That is extremely weird O>o
     
  16. Offline

    bill45

    Would the number possibly throw it off? Or does your .jar go off of something else in the craftbukkit.jar?
     
  17. i doubt the number would throw it off, you can try without. My .jar just runs the .bat :confused:
     
  18. Offline

    bill45

    Ya didn't make a difference was just a thought. It is rather odd. It just leaves the prompt open with the last line just showing the file path of the folder of where the .bat is.
     
  19. You can try putting pause after the first line of windowsonly.bat and posting the error here
     
  20. Offline

    bill45

    Just gives me No tasks running with the specified criteria
     
  21. thats interesting. Your title only says MC, nothing like administartor or something like that? Could you take a screenshot of the server when its running?
     
  22. Offline

    bill45

    Ya only says MC nothing more. Was just running my server now.
     

    Attached Files:

  23. It should defidently work. It works for others! :p I really don't know at this point, you can make sure the bat exactly matches the one that you downloaded, its *possible* that you accidently moved a space or something, but it shouldn't matter. Sorry about this!
     
  24. Offline

    bill45

    Lol actually that is exactly what it was. Right after MC there was one space. Now it closes just fine, thank you.
     
  25. sweet :D I knew it would work xD Anyway, hope you enjoy!

    Updated the op, use github for bugs/features ;)

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

    ToXicFRaGz

    sorry I don't get the:
    "you *MUST* modify the bat you have to say one the first line:
    • title MC"
    should "one" be "on"
     
  27. yes, im so sorry :confused:
     
  28. Offline

    ToXicFRaGz

    it's all cool, Can i ask where on the bat do i type title MC or MC
     
  29. the very first line
     
  30. Offline

    ToXicFRaGz

    taskkill /fi "MC"
    OR
    taskkill /fi "title MC"

    and do i then run that bat file to start the server
     
  31. taskill /fi "MC"
    you run the bat you use to start the server like normal

    WARNING:
    this post is for some reason likeable! :p

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
    ToXicFRaGz likes this.

Share This Page