[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

    sharkck

    #RestartNow Config
    #Mon Jun 13 16:14:16 EDT 2011
    Wait-Before-Start=10 s
    Notify-Ten-Minutes=true
    Craftbukkit-Launcher=run.bat
    No-Players-Reload-Time=10 m
    Notify-Five-Minutes=true
    Notify-One-Minute=true
    Notify-Thirty-Minutes=true
    No-Player-Time=1 h
    Automatic-Restarts-Time=2 h
    No-Players-Reload=false
    OS-Name=Windows
    Automatic-Restarts=false
    Notify-Fifteen-Minutes=true
    No-Players-Restart=true
     
  3. Offline

    Mcmaxx

    Well the server has been on the last 8 hours without crashing, which is a win. I actually took the "pause" out of the .bat file (which may have solved the problem.) Here's my config:
    #RestartNow Config
    #Fri Jul 08 13:15:30 EDT 2011
    Wait-Before-Start=30 s
    Notify-Ten-Minutes=true
    Craftbukkit-Launcher=run.bat
    No-Players-Reload-Time=30 m
    Notify-Five-Minutes=true
    Notify-One-Minute=true
    Notify-Thirty-Minutes=true
    No-Player-Time=2 h
    Automatic-Restarts-Time=2 h
    No-Players-Reload=true
    OS-Name=Windows
    Automatic-Restarts=true
    Notify-Fifteen-Minutes=true
    No-Players-Restart=true
     
  4. Offline

    sharkck

    One problem may be, the download link above (zip) is for version 0.2.1... Is there another link I can use?
     
  5. ahh, please delete your configuration file and re-download
    EDIT: god im stupid, i put up the wrong link. one sec
     
  6. Offline

    sharkck

    Lol. I was wondering what was going on. I loaded up MC, typed /version RestartNow and was going to take Screenshots of it and was like WAIT A SEC! this is the old one!
     
  7. @sharkck
    sorry, fixed download link

    ok. (btw please download 0.3 and delete your config)

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

    sharkck

    Thanks! That fixed the problem! Everything seems to be working now... even the added intervals in the config:
    Notify-Times=1 h, 30 m, 20 m, 10 m, 5 m, 1 m, 30 s, 15 s, 5 s
     
  9. alright, sweet :p Hope you enjoy the (finally fixed) plugin :D
     
  10. Offline

    sharkck

    I did just notice one minor thing... when the server actually starts the restart command, it displays in chat (before the client logs out) ChatColor.null**Server is restarting!**

    I dont know if thats a problem but I noticed it!
     
  11. Whoops. I had that, but I though i fixed. I'll look and see what stupid typo i made now in a sec ;)
     
  12. Offline

    sharkck

    I appreciate the opportunity to work with you on this. Now if only the plugin could run my world backup.bat file @ different intervals, that would be something!

    Great job and I look forward to being able to use this plugin for the rest of my Minecraft server's life :D (Beats the hell out of using some sort of cron for windows...)
     
  13. Can you paste the ChatColor option please?(in the config)

    hey, i have fun doing it :p As for the backup.bat file, thats a.... interesting idea.

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

    sharkck

    #RestartNow Config
    #Mon Jul 11 22:34:59 EDT 2011
    Kick-Reason=Server is restarting.
    Wait-Before-Start=10 s
    Notify-Times=1 h, 30 m, 20 m, 10 m, 5 m, 1 m, 30 s, 15 s, 5 s
    Automatic-Reloads-Time=30 m
    Craftbukkit-Launcher=run.bat
    Chat-Color-On-Shutdown=RED
    No-Players-Reload-Time=10 m
    No-Player-Time=15 m
    Automatic-Reloads=false
    Automatic-Restarts-Time=2 h
    No-Players-Reload=false
    Automatic-Restarts=false
    Broadcast-On-Shutdown=**Server is restarting\!**
    No-Players-Restart=true
     
  15. Hmmm im looking into it now. Also, you can remove the \ from **Server is restarting\!**, im working on fixing it...
    EDIT: I'll just do a little restructuring, pretty sure I found it
     
  16. Offline

    sharkck

    Heh. cool.... I am curious about what it means in the new features with this version, Auto updating?
     
  17. from now on you will no longer have to download updates, it will say RestartNow needs a update, then you can type /restartnow update
     
  18. Offline

    sharkck

    Oh really? That is amazing. Boy... if only the other plugin authors would set theirs up to do this!
     
  19. ;) It also auto-extracts, so no more setup(except a little thing for windows users, they still have to change windowsonly.bat to their bat name)
     
  20. Offline

    RedAlex

    Last time i have problem with your plugin i stay with SimpleRestart.
     
  21. uhhh, ok? I don't
    A)Know what the problem you have is
    B)Really care which plugin you use
     
  22. Offline

    RedAlex

    2011-07-11 23:09:26 [INFO] [RestartNow] Version 0.3_0 ready to restart!
    2011-07-11 23:09:26 [INFO] [RestartNow] Permissions detected.
    2011-07-11 23:09:26 [SEVERE] java.io.FileNotFoundException: C:\Users\Alex\Desktop\Serveur%20Syrie%20Towny%20Priver\plugins\restartNow.jar (Le chemin d’accès spécifié est introuvable)
    2011-07-11 23:09:26 [SEVERE] at java.util.zip.ZipFile.open(Native Method)
    2011-07-11 23:09:26 [SEVERE] at java.util.zip.ZipFile.<init>(Unknown Source)
    2011-07-11 23:09:26 [SEVERE] at java.util.jar.JarFile.<init>(Unknown Source)
    2011-07-11 23:09:26 [SEVERE] at java.util.jar.JarFile.<init>(Unknown Source)
    2011-07-11 23:09:26 [SEVERE] at com.tips48.restartNow.RestartNowExtractor.extractFile(RestartNowExtractor.java:23)
    2011-07-11 23:09:26 [SEVERE] at com.tips48.restartNow.RestartNow.onEnable(RestartNow.java:192)
    2011-07-11 23:09:26 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    2011-07-11 23:09:26 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
    2011-07-11 23:09:26 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
    2011-07-11 23:09:26 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
    2011-07-11 23:09:26 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
    2011-07-11 23:09:26 [SEVERE] at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
    2011-07-11 23:09:26 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
    2011-07-11 23:09:26 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
    2011-07-11 23:09:26 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    2011-07-11 23:09:26 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-11 23:09:27 [INFO] [RestartNow] You are running the latest version of RestartNow.
    After test all time the serveur restart another java.exe stay open with 6-8m used.
     
  23. Offline

    sharkck

    I would start by moving all of your plugins out of the plugins folder and put them back one by one until the error comes back... This seems it can be a number of things and not necessarily RestartNow...

    ALSO, I have had problems like this come up pretty much guaranteed, every time from having misplaced/extra spaces inside any of my permissions config files... so i would check after each line in my permissions config's (Use Notepad++ to check the files).
     
  24. Offline

    Zippo

    Hello, I have a problem, when I say"/schedulerestart 20 s", a white message comes up saying "/schedulerestart <time>"
     
  25. Offline

    morizuki

    Code:
    2011-07-12 15:53:26 [SEVERE] java.io.FileNotFoundException: C:\Users\XXXX\Desktop\MC%20Server%201.7\plugins\restartNow.jar (The system cannot find the path specified)
    2011-07-12 15:53:26 [SEVERE]     at java.util.zip.ZipFile.open(Native Method)
    2011-07-12 15:53:26 [SEVERE]     at java.util.zip.ZipFile.<init>(Unknown Source)
    2011-07-12 15:53:26 [SEVERE]     at java.util.zip.ZipFile.<init>(Unknown Source)
    2011-07-12 15:53:26 [SEVERE]     at java.util.jar.JarFile.<init>(Unknown Source)
    2011-07-12 15:53:26 [SEVERE]     at java.util.jar.JarFile.<init>(Unknown Source)
    2011-07-12 15:53:26 [SEVERE]     at com.tips48.restartNow.RestartNowExtractor.extractFile(RestartNowExtractor.java:23)
    2011-07-12 15:53:26 [SEVERE]     at com.tips48.restartNow.RestartNow.onEnable(RestartNow.java:192)
    2011-07-12 15:53:26 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    2011-07-12 15:53:26 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:864)
    2011-07-12 15:53:26 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
    2011-07-12 15:53:26 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
    2011-07-12 15:53:26 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
    2011-07-12 15:53:26 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
    2011-07-12 15:53:26 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
    2011-07-12 15:53:26 [SEVERE]     at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
    2011-07-12 15:53:26 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    2011-07-12 15:53:26 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-12 15:53:26 [SEVERE] java.io.FileNotFoundException: C:\Users\XXXXX\Desktop\MC%20Server%201.7\plugins\restartNow.jar (The system cannot find the path specified)
    2011-07-12 15:53:26 [SEVERE]     at java.util.zip.ZipFile.open(Native Method)
    2011-07-12 15:53:26 [SEVERE]     at java.util.zip.ZipFile.<init>(Unknown Source)
    2011-07-12 15:53:26 [SEVERE]     at java.util.zip.ZipFile.<init>(Unknown Source)
    2011-07-12 15:53:26 [SEVERE]     at java.util.jar.JarFile.<init>(Unknown Source)
    2011-07-12 15:53:26 [SEVERE]     at java.util.jar.JarFile.<init>(Unknown Source)
    2011-07-12 15:53:26 [SEVERE]     at com.tips48.restartNow.RestartNowExtractor.extractFile(RestartNowExtractor.java:23)
    2011-07-12 15:53:26 [SEVERE]     at com.tips48.restartNow.RestartNow.onEnable(RestartNow.java:194)
    2011-07-12 15:53:26 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    2011-07-12 15:53:26 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:864)
    2011-07-12 15:53:26 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
    2011-07-12 15:53:26 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
    2011-07-12 15:53:26 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
    2011-07-12 15:53:26 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
    2011-07-12 15:53:26 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
    2011-07-12 15:53:26 [SEVERE]     at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
    2011-07-12 15:53:26 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    2011-07-12 15:53:26 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-12 15:53:29 [INFO] [RestartNow] You are running the latest version of RestartNow.
    Having problem the same with RedAlex.. I've remove all the plugins except permissions(which restartNow use) and still having this problem..
     
  26. @morizuki @RedAlex i will checkout your problem, I didn't get that in testing. I do know that it is a error with extracting the files.
    @Zippo I have not ever recieved that message, and i tested /schedulerestart a ton. I can look into it, but thats very weird
    EDIT: @RedAlex @morizuki is there any chance that your systems are *not* in english?
     
  27. Offline

    morizuki

    my system is in english..
     
  28. weird... I don't have this problem, but i know why its caused. What is the path to the plugins folder? e.x. for me its C:\dev\cb\plugins\restartNow.jar
    Does it have any spaces in it?
     
  29. Offline

    morizuki

    ahh yeah it have spaces on it.. lemme try removing some spaces..

    EDIT: Yep.. it's ok now..
     
  30. ok. So the problem is spaces? I'll look for a fix quick.
     
  31. Offline

    morizuki

    yeah spaces..
     

Share This Page