[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. ok. If it doesn't work with mcmyadmin then i will defidently try to get it to work...
    @PhonicUK thats your software right? :p Any reason why it wouldn't work?
     
  3. Offline

    Mcmaxx

    Sure, it worked the whole week until today. Maybe its my computer going into powersave or hibernating, but I don't think so. I disabled powersave so that the server can run permanently. So what happens is that the server shuts down all plugins, then restarts them, then IMMEDIATELY gives the message [Press any button to continue..]
    Upon startup of the server, am I supposed to be doing anything? Any commands? I didn't edit the config file so is it right the way I'm using it?
     
  4. no, it should automatically restart. I'm going to take a wild guess your on windows? :p
     
  5. Offline

    Mcmaxx

    It actually worked for the last week, until today. The thing is, the plugins shut down, then restart, then IMMEDIATELY it says [Press any key to continue..]
    I don't set my computer to hibernate or sleep, so that the server's constantly on. I also didn't edit the config file in any way.. so I don't know. Is there a command I'm missing?
    Sorry for the double post :p And yea, I'm on windows..
     
  6. ok, i figured. can you paste:
    -a screenshot of the directory that craftbukkit.jar is in?(the only with plugins/ and craftbukkit.jar)
    -Your windowsonly.bat
    -You bat that you use to start the server
    I get the feeling i know the problem, but i need that first :D
     
    Mcmaxx likes this.
  7. Offline

    Mcmaxx

    Here it is, all in one:
     

    Attached Files:

  8. thanks, let me check it over
    EDIT:
    okay, can you change windowsonly.bat to say on a new line after the line "taskkill /fi "a bunch of stuff"... just make the new line say "pause" without quotes and then it will probably give a error, paste that here
     
  9. Offline

    Mcmaxx

    I added a new line after the taskkill line, saying "pause", ran it, and it gave me no error.
    Should I assume its fixed?
     
  10. I would try removing pause, and then when the server loads restart it, and see if it works...
     
  11. Offline

    Mcmaxx

    I did what you said, removing pause, loading the server, and restarting.. it worked.
    But it worked before too, with that command. It only doesn't work occasionally.
    Extra: I actually took one extra step for you, ran the server, and restarted it with "pause" in the .txt file, got this (error).
    EDIT: the pause carries out its function, because when I pressed enter, it rebooted the server.
     

    Attached Files:

  12. Wow, how did i miss that :O at the top of run.bat(a new line, must be the first line), make it say "title MC" without quotes. should fix :)
     
    Mcmaxx likes this.
  13. Offline

    Mcmaxx

    Made it say "title MC" on the first line of the run.bat.
    I ran it, runs no problem, restarted it, no problem.
    The weird thing that also got fixed was that (before) it made a whole new cmd window when the server restarted, so thats all good now too.
    It seems to have been a mistake on my part, not having that in my "run.bat" in the first place. Hopefully no one else screws up like I did.. haha.
    Thanks so much man, I don't know anyone who takes so much effort to help his inquirers (is that a word?) as much as you do.
    Cheers!
     
  14. You welcome :p Hope you enjoy the plugin, I can't wait to get 0.3 out!
     
  15. Offline

    Phealoon

    Um still real curious is there an eta (estimated time of arrival) on the 0.3 update?
     
  16. Offline

    craztheking

    yes phonicUK<-

    good/bad news

    Restested .. not working =/

    World save works
    KickAll works


    >Exactly from the cmd that popped up<

    C:\Users\v\Desktop\McMyAdmin\McMyAdmin>taskkill /fi "windowtitle eq MC"
    INFO: No tasks running with the specified criteria.
    The syntax of the command is incorrect.
    C:\Users\v\Desktop\McMyAdmin\McMyAdmin>start <bat name>
    C:\Users\v\Desktop\McMyAdmin\McMyAdmin>

    VVVVVVVVVVVVVV
     
  17. Offline

    Christop406

    I'm on a mac (SL 10.6.8) and I use this plugin and I can get the server to restart, but the console goes away? if this question's been answered already sorry i was too lazy to go through all the pages :p
    Any help would be well, helpful :)

    EDIT: is it because i'm using CB 953?
     
  18. Offline

    sharkck

    I have been using this plugin for a while now and I have only used it for the no-player restart (dont really need the rest atm). I just setup where my admins can use the /schedulerestart command and when it is used, the server's broadcast time is multiplied by 3. For example... Typing /schedulerestart 11 minutes outputs in chat: Server set to restart in 33 minutes. and after 1 minute, when the 10 minute broadcast should go off, it says in chat, The server is restarting in 30 minutes. Is there a way to make this time accurate?
     
  19. Offline

    Justinwiz

    I went to this plugin as last resort because it had a lower build number than the current RB, can you update that?
    :rolleyes:
     
  20. Offline

    Juze

  21. Offline

    Mcmaxx

    Hello again, it's morning and I checked on the server I left on overnight, at around 2:00 or so it happened again..
    Sorry if I'm bugging the crap outta you, but I think this plugin has alot of potential and I want it in my server. :\
    Anymore help would be super useful..
     

    Attached Files:

  22. no no no! xD (updated title, i completely forgot)

    Weird :O I've never seen that before, but I use on my server 24/7. Could you maybe paste your config?
    @Justinwiz sorry its updated, i just forgot to up the build num
    @craztheking Weird. I'll see if i can catch @PhonicUK (uhhh, herro! :p) in #bukkit or #bukkitdev, and if I do then I will try to sort it out :)
    @sharkck known bug, check below
    @Christop406 this is not caused by the build, it is a known bug with no possible solution atm, the only thing I can do is make it a wrapper, which I will consider doing soon.
    @Phealoon truthfully, the only reason why 0.3 *isn't* out is because the broadcast times are still bugged. I've been super tired and am lacking a math solution even though I know there is one. I'm trying ;)

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

    craztheking

    Thanks =D
     
  24. Offline

    PhonicUK

    You shouldn't really use a restarter plugin while using McMyAdmin, since McMyAdmin can handle restarts either using the /restart command or via the scheduler.
     
  25. So i was able to get a hold of PhonicUK, he said that you should be using the /restart command that comes with MCMA, not this plugin. Sorry!
     
  26. Offline

    craztheking

    dosent work.. but thats ok i can live without it lol
     
  27. doesn't work?

    PhonicUK said it works, try #McMyAdmin at irc.esper.net or his forums for more information

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

    craztheking

    yea im on it thanks
     
  29. yw sorry this couldn't work out!

    Version 0.3 is OUT! I probably forgot alot of new features, When im not running on 3 hours of sleep i'll update the changelog :p
    I will release a version 0.3.1 with a completely re-written onCommand which will help with performance(like you have any problems already :p) and will look alot cleaner to anyone looking at the source. This of course assumes there are no bugs I missed in the testing, which I doubt there is.
    Enjoy!

    Now thats its moved back to plugin releases, I should say:
    0.3 is out! Horray!

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

    sharkck

    Today's release does NOT fix my problem with the timer messages in chat being multiplied by 3. Is this something I am doing wrong or is it a plugin error?

    Edit: (In addition to the conditions in my previous post) I just tried a '/schedulerestart 30 second' and the chat broadcasted Server set to restart in 1 second. Trying '/schedulerestart 55 second' broadcasted Server set to restart in 2 second.

    Typing /schedulerestart 1 hour broadcasted: Server set to restart in 180 hour
     
  31. can you paste your configuration? I tested it a ton and it worked fine for me.
     

Share This Page