[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

    You're lucky.... no commands related to this plugin work for me anymore... they all want to make bukkit cry! Edit: leak tears!

    The only thing that works is the automatic restarts and thats it (I dont use auto reload so I wouldnt know if that works).

    Currently running craftbukkit 1303 server.
     
  3. Offline

    ZacTheDead

    i get this error when i start it up (i have the lastest version of bukkit and the plugin
    Code:
    09:20:09 [SEVERE] java.io.FileNotFoundException: C:\Users\Joseph\Desktop\MineCr
    ft%20Servers\PuBLIC%20SERVER\plugins\restartNow.jar (The system cannot find the
    path specified)
    09:20:09 [SEVERE]       at java.util.zip.ZipFile.open(Native Method)
    09:20:09 [SEVERE]       at java.util.zip.ZipFile.<init>(Unknown Source)
    09:20:09 [SEVERE]       at java.util.jar.JarFile.<init>(Unknown Source)
    09:20:09 [SEVERE]       at java.util.jar.JarFile.<init>(Unknown Source)
    09:20:09 [SEVERE]       at com.tips48.restartNow.RestartNowExtractor.extractFil
    (RestartNowExtractor.java:23)
    09:20:09 [SEVERE]       at com.tips48.restartNow.RestartNow.onEnable(RestartNow
    java:192)
    09:20:09 [SEVERE]       at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlu
    in.java:126)
    09:20:09 [SEVERE]       at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin
    JavaPluginLoader.java:941)
    09:20:09 [SEVERE]       at org.bukkit.plugin.SimplePluginManager.enablePlugin(S
    mplePluginManager.java:280)
    09:20:09 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftS
    rver.java:174)
    09:20:09 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.enablePlugins(Cra
    tServer.java:157)
    09:20:09 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.reload(CraftServe
    .java:416)
    09:20:09 [SEVERE]       at org.bukkit.Bukkit.reload(Bukkit.java:182)
    09:20:09 [SEVERE]       at org.bukkit.command.defaults.ReloadCommand.execute(Re
    oadCommand.java:22)
    09:20:09 [SEVERE]       at org.bukkit.command.SimpleCommandMap.dispatch(SimpleC
    mmandMap.java:163)
    09:20:09 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.dispatchCommand(C
    aftServer.java:358)
    09:20:09 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.dispatchCommand(C
    aftServer.java:354)
    09:20:09 [SEVERE]       at net.minecraft.server.MinecraftServer.b(MinecraftServ
    r.java:506)
    09:20:09 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServ
    r.java:485)
    09:20:09 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSe
    ver.java:374)
    09:20:09 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sou
    ceFile:417)
    09:20:09 [SEVERE] java.io.FileNotFoundException: C:\Users\Joseph\Desktop\MineCr
    ft%20Servers\PuBLIC%20SERVER\plugins\restartNow.jar (The system cannot find the
    path specified)
    09:20:09 [SEVERE]       at java.util.zip.ZipFile.open(Native Method)
    09:20:09 [SEVERE]       at java.util.zip.ZipFile.<init>(Unknown Source)
    09:20:09 [SEVERE]       at java.util.jar.JarFile.<init>(Unknown Source)
    09:20:09 [SEVERE]       at java.util.jar.JarFile.<init>(Unknown Source)
    09:20:09 [SEVERE]       at com.tips48.restartNow.RestartNowExtractor.extractFil
    (RestartNowExtractor.java:23)
    09:20:09 [SEVERE]       at com.tips48.restartNow.RestartNow.onEnable(RestartNow
    java:194)
    09:20:09 [SEVERE]       at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlu
    in.java:126)
    09:20:09 [SEVERE]       at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin
    JavaPluginLoader.java:941)
    09:20:09 [SEVERE]       at org.bukkit.plugin.SimplePluginManager.enablePlugin(S
    mplePluginManager.java:280)
    09:20:09 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftS
    rver.java:174)
    09:20:09 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.enablePlugins(Cra
    tServer.java:157)
    09:20:09 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.reload(CraftServe
    .java:416)
    09:20:09 [SEVERE]       at org.bukkit.Bukkit.reload(Bukkit.java:182)
    09:20:10 [SEVERE]       at org.bukkit.command.defaults.ReloadCommand.execute(Re
    oadCommand.java:22)
    09:20:10 [SEVERE]       at org.bukkit.command.SimpleCommandMap.dispatch(SimpleC
    mmandMap.java:163)
    09:20:10 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.dispatchCommand(C
    aftServer.java:358)
    09:20:10 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.dispatchCommand(C
    aftServer.java:354)
    09:20:10 [SEVERE]       at net.minecraft.server.MinecraftServer.b(MinecraftServ
    r.java:506)
    09:20:10 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServ
    r.java:485)
    09:20:10 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSe
    ver.java:374)
     
  4. Offline

    SilencShadoW

    Hey Guy
    i cant use any command, i got PEX and OP ... if i want /restartnow or just any command of u .. bukkit says: "Bukkit sad. Bukkit want you to access that command ... bla" :(

    also got following error:

    Code:
    2011-11-09 22:37:36 [INFO] [RestartNow] Version 0.3_2 ready to restart!
    2011-11-09 22:37:36 [INFO] [RestartNow] Permissions detected.
    2011-11-09 22:37:36 [SEVERE] java.util.zip.ZipException: error in opening zip file
    2011-11-09 22:37:36 [SEVERE]     at java.util.zip.ZipFile.open(Native Method)
    2011-11-09 22:37:36 [SEVERE]     at java.util.zip.ZipFile.<init>(ZipFile.java:131)
    2011-11-09 22:37:36 [SEVERE]     at java.util.jar.JarFile.<init>(JarFile.java:150)
    2011-11-09 22:37:36 [SEVERE]     at java.util.jar.JarFile.<init>(JarFile.java:87)
    2011-11-09 22:37:36 [SEVERE]     at com.tips48.restartNow.RestartNowExtractor.extractFile(RestartNowExtractor.java:23)
    2011-11-09 22:37:36 [SEVERE]     at com.tips48.restartNow.RestartNow.onEnable(RestartNow.java:192)
    2011-11-09 22:37:36 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:174)
    2011-11-09 22:37:36 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:957)
    2011-11-09 22:37:36 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
    2011-11-09 22:37:36 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:171)
    2011-11-09 22:37:36 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:154)
    2011-11-09 22:37:36 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
    2011-11-09 22:37:36 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
    2011-11-09 22:37:36 [SEVERE]     at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
    2011-11-09 22:37:36 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    2011-11-09 22:37:36 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-11-09 22:37:36 [SEVERE] java.util.zip.ZipException: error in opening zip file
    2011-11-09 22:37:36 [SEVERE]     at java.util.zip.ZipFile.open(Native Method)
    2011-11-09 22:37:36 [SEVERE]     at java.util.zip.ZipFile.<init>(ZipFile.java:131)
    2011-11-09 22:37:36 [SEVERE]     at java.util.jar.JarFile.<init>(JarFile.java:150)
    2011-11-09 22:37:36 [SEVERE]     at java.util.jar.JarFile.<init>(JarFile.java:87)
    2011-11-09 22:37:36 [SEVERE]     at com.tips48.restartNow.RestartNowExtractor.extractFile(RestartNowExtractor.java:23)
    2011-11-09 22:37:36 [SEVERE]     at com.tips48.restartNow.RestartNow.onEnable(RestartNow.java:194)
    2011-11-09 22:37:36 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:174)
    2011-11-09 22:37:36 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:957)
    2011-11-09 22:37:36 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
    2011-11-09 22:37:36 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:171)
    2011-11-09 22:37:36 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:154)
    2011-11-09 22:37:36 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
    2011-11-09 22:37:36 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
    2011-11-09 22:37:36 [SEVERE]     at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
    2011-11-09 22:37:36 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    2011-11-09 22:37:36 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-11-09 22:37:37 [INFO] [RestartNow] You are running the latest version of RestartNow.
     
  5. Offline

    Mav

    has anyone tested this plugin on 1337 or later? It seems the thread is inactive.
     
  6. Yes, the plugins inactive. Sorry!
    I may re-write it in the future
     
  7. Offline

    Mav

    please do it sooner rather than later, it is the only plugin that does what i want but the build on here will have no hope of working.
    it would be greatly appreciated.
     
  8. Offline

    Kohle

    @tips48

    I command you to bring this back into ACTIVENESS!

    Please? :3
     

Share This Page