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

    tips48

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.  
  3. Offline

    decebaldecebal

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I t
    I did it and it just didn't want to restart!
    And also if i restart the server manually (using /restart) and i get back to the server in half an hour the console says Read Time out and the server just froze!Is this a plugin or a bukkit problem?
  4. Offline

    Masterflapdrol

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    So do i have to put the road inside like /users/ (the name)/server/serverstart.command.
    yes the plugin downloaded the config. There where not any errors but it doesnt open it up agan.
  5. Offline

    tips48

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    A)I see no reason why automatic restarts wouldn't work if /restart does, sorry
    B)Thats a bukkit problem. are you on 1000?
  6. Offline

    tips48

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    windows or linux?
  7. Offline

    Masterflapdrol

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Mac
  8. Offline

    sharkck

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Hey! I found another bug!
    I turned automatic reloads on, set it to 31 minutes and it prompts in the ingame chat, server is restarting in 1800 minutes while in the server console it says 30 minutes... and the whole way down, it says numbers higher than they should be just like the /schedulerestart problem we fixed previously did. Also, it says the server's restarting even though its just a reload.

    One other thing, /version RestartNow says it is version 0.3 (not 3.2).

    Hope all is well!
  9. Offline

    tips48

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Just a response to everyone:
    I've been extremely busy this week, as this week is "band week", which means band from 8am to 10pm every day, so I haven't had much time to do what i've said i'll do. sorry :p
    @sharkck thanks for the report, i know why but won't be able to fix till the weekend
    @Masterflapdrol weird, i'll think about why it won't work :O
  10. Offline

    sharkck

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Sweet! Cant wait for the update!

    *hopes the /update command works this time! :-Þ
  11. Offline

    vampirepiggy9

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    mine isnt restarting....itz just stopping the server
  12. Offline

    tips48

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    haha :D
    @vampirepiggy9 i'm going to need more information then that. did you read the OP?
  13. Offline

    piluke

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I'm having the same problems as Masterflapdrol.

    I'm on Windows XP. My batch file is located at C:\Documents and Settings\HP_Administrator\Desktop\Game Servers\Minecraft\Survival\run.bat

    Here's my config:
    Also whenever it starts up or is reloaded it gives this error:
  14. Offline

    tips48

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @piluke i know about the problem, i'm looking into it.
  15. Offline

    HunterAP

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I am running Bukkit 1000, and RestartNow 3_2. I am having the same problem where automatic restarts are not happening. I can schedule restarts from the console and they work fine. Other features are being read properly from the config.properties file such as no-players-restart option.
    If you think this might be a plugin conflict, let me know and I'll grab the list. (about 20 or so plugins)
  16. Offline

    tips48

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I don't think its a conflict, can you post your config?
  17. Offline

    Stormbow

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I'm in the same boat with the "path not found" crowd.

    CB 1000
    Java 1.6
    Win7-64

    Plugins: Administrate, BookWorm, ChestHarvester, Citizens, DailyBonus, DogWhisperer, Essentials (+chat, +spawn), FalsebookBlock (+core), FoundDiamonds, GravelClay, HeroicDeath, iConomy, Jail, Jobs, KitPlugin, Lavafurnace, LocalShops, LWC, MailBox, mcMMO, MinecartMania (+AdminCtrls, +Autocart, +ChestControl, +Core, +SignCommands, +Station), MobBounty, OtherBlocks, Permissions, Scavenger, Seasons, SimpleNews, SimpleReserve, SimpleTime, SimpleTips, TieDyeSheep, Tomb, Towny (+Questioner), uQuest (+AutoComplete, +ShowTracker), Vault, Whitelist, WorldEdit, WorldGuard.

    This post has been edited 1 time. It was last edited by Stormbow Aug 1, 2011.
  18. Offline

    HunterTTP

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Ok, so I read the first step of the wiki and completed it. When I restarted the server I got this

    151 recipes
    16 achievements
    12:27:16 [INFO] Starting minecraft server version Beta 1.7.3
    12:27:16 [INFO] Loading properties
    12:27:16 [INFO] Starting Minecraft server on ---.---.-.-:-------
    12:27:16 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-945-
    g73697a4-b1000jnks (MC: 1.7.3)
    12:27:16 [INFO] Preparing level "------"
    12:27:16 [INFO] Preparing start region for level 0 (Seed: -1090462178712991586)
    12:27:17 [INFO] Preparing start region for level 1 (Seed: -7466678718785115264)
    12:27:17 [INFO] Preparing spawn area: 24%
    12:27:18 [INFO] [BD] Initiating plugin...
    12:27:18 [INFO] [BD] Initialized
    12:27:18 [INFO] [RestartNow] Version 0.3_2 ready to restart!
    12:27:18 [INFO] [RestartNow] Permissions not detected.
    12:27:18 [SEVERE] java.io.FileNotFoundException: C:\Users\Hunter\Desktop\Shifter
    's%20Serv\plugins\restartNow.jar (The system cannot find the path specified)
    12:27:18 [SEVERE] at java.util.zip.ZipFile.open(Native Method)
    12:27:18 [SEVERE] at java.util.zip.ZipFile.<init>(Unknown Source)
    12:27:18 [SEVERE] at java.util.jar.JarFile.<init>(Unknown Source)
    12:27:18 [SEVERE] at java.util.jar.JarFile.<init>(Unknown Source)
    12:27:18 [SEVERE] at com.tips48.restartNow.RestartNowExtractor.extractFile
    (RestartNowExtractor.java:23)
    12:27:18 [SEVERE] at com.tips48.restartNow.RestartNow.onEnable(RestartNow.
    java:192)
    12:27:18 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlug
    in.java:126)
    12:27:18 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(
    JavaPluginLoader.java:878)
    12:27:18 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(Si
    mplePluginManager.java:272)
    12:27:18 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftSe
    rver.java:162)
    12:27:18 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(Craf
    tServer.java:146)
    12:27:18 [SEVERE] at net.minecraft.server.MinecraftServer.e(MinecraftServe
    r.java:284)
    12:27:18 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServe
    r.java:271)
    12:27:18 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftSe
    rver.java:148)
    12:27:18 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:335)
    12:27:18 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    12:27:18 [SEVERE] java.io.FileNotFoundException: C:\Users\Hunter\Desktop\Shifter
    's%20Serv\plugins\restartNow.jar (The system cannot find the path specified)
    12:27:18 [SEVERE] at java.util.zip.ZipFile.open(Native Method)
    12:27:18 [SEVERE] at java.util.zip.ZipFile.<init>(Unknown Source)
    12:27:18 [SEVERE] at java.util.jar.JarFile.<init>(Unknown Source)
    12:27:18 [SEVERE] at java.util.jar.JarFile.<init>(Unknown Source)
    12:27:18 [SEVERE] at com.tips48.restartNow.RestartNowExtractor.extractFile
    (RestartNowExtractor.java:23)
    12:27:18 [SEVERE] at com.tips48.restartNow.RestartNow.onEnable(RestartNow.
    java:194)
    12:27:18 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlug
    in.java:126)
    12:27:18 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(
    JavaPluginLoader.java:878)
    12:27:18 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(Si
    mplePluginManager.java:272)
    12:27:18 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftSe
    rver.java:162)
    12:27:18 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(Craf
    tServer.java:146)
    12:27:18 [SEVERE] at net.minecraft.server.MinecraftServer.e(MinecraftServe
    r.java:284)
    12:27:18 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServe
    r.java:271)
    12:27:18 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftSe
    rver.java:148)
    12:27:18 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:335)
    12:27:18 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    12:27:24 [INFO] [RestartNow] You are running the latest version of RestartNow.
    12:27:24 [INFO] Server permissions file permissions.yml is empty, ignoring it
    12:27:24 [INFO] Done (0.797s)! For help, type "help" or "?"
    >
  19. Offline

    tips48

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Everyone if you get a error on reload/restart/startup that mentions java.io.FileNotFoundException: I know about it, I'm looking for a fix. You can manually open the jar and extract RestartNowMain.jar and windowsonly.bat to the folder that craftbukkit is in, and the plugin will work fine, although it will still give the error.
  20. Offline

    HunterAP

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Code:
    #RestartNow Config
    #Sun Jul 31 20:50:19 EDT 2011
    Kick-Reason=Server is restarting.
    Wait-Before-Start=30 s
    Notify-Times=1 h, 30 m, 20 m, 10 m, 5 m, 1 m, 30 s
    Craftbukkit-Launcher=start.bat
    Chat-Color-On-Shutdown=RED
    Automatic-Reloads=false
    Automatic-Reloads-Time=30 m
    Automatic-Restarts=true
    Automatic-Restarts-Time=4 h
    Broadcast-On-Shutdown=**Server is restarting\!**
    No-Players-Reload=false
    No-Players-Reload-Time=10 m
    No-Players-Restart=false
    No-Player-Time=15 m
    I have tried setting the restart time to 2 minutes in order to test this, but no restarts happen. I have reloads disabled as reloads have been known to cause problems with some plugins.
    If I enable no-player restarts, then the server restarts every 15 mins when players are not on. I would like to request that this be changed so that if no one has logged in since the last no-player restart, that the restart is skipped. I would prefer, however, to simply have timed restarts every 4 to 6 hours.
    Oh, and one other thing... It seems that the players get different messages than the server console displays... When I scheduled a restart via the console, I saw the time left as 1 minute. The players saw 60 minutes. At 30 secs, they also saw 30 secs. Small bug.
  21. Offline

    tips48

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    is your launcher start.bat?
  22. Offline

    HunterAP

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    It is, and it seems to work fine. Again, console scheduled restarts work fine, as do no-players restarts. It is just automatic restarts that are not working.
  23. Offline

    tips48

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Any errors in the console?
  24. Offline

    HunterAP

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    No errors in the console. I'm wondering if it is looking at another setting to determine if it is going to do auto-restarts.
  25. Offline

    tips48

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    i don't think so.. weird!
  26. Offline

    HunterAP

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I might have found the problem... Line 464 and 465 of RestartNow.Java... Doesn't look like you're scheduling a restart if automatic==true.
  27. Offline

    tips48

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Really? I'll check it out
  28. Offline

    HunterAP

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Heya Tips. You have a chance to look at that yet?
  29. Offline

    tips48

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Just released Herobrine, today i'll fix some bugs here
  30. Offline

    Darsith

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Awesome plugin, works perfectly!

    for those with path issues, I found that spaces in file name cause errors, just delete the spaces and it works flawlessly.

    I also found a bug, when the server warning appears for the 1 min timer it says 60 minutes, not 60 seconds.
    tips48 likes this.
  31. Offline

    Darsith

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    found another little issue last night. When restartnow is installed it completely stops the dropchest plugin from working.

    Any idea why this might be causing a conflict? (removed this and the dropchest plugin started working again)
  32. Offline

    tips48

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I have *no* clue why that would happen

Share This Page