[INACTIVE][ADMN] AutoStop v0.53 - Time-Based Server Shutdowns and Restarts [531]

Discussion in 'Inactive/Unsupported Plugins' started by dv90, Mar 6, 2011.

  1. Offline

    dv90

    Server AutoStop
    Time-Based Scheduled Server Shutdowns and Restarts
    I no longer support this plugin as I don't have the time. Sorry. Plugin devs. can edit the source and release it as they want. The current version is somewhat functional on some systems but not others.

    Version: v0.53
    Source: v0.53
    Requirements: Permissions v2.0/2.5+ (Optional)

    A simple plugin that saves player and chunk data then shuts the server down at a specified time.

    The plugin will automatically put AutoRestart.jar in your bukkit directory.
    Don't run it; it won't do anything.
    Do not delete or move it.
    If your server doesn't auto restart, post your restart_log.txt here.
    If there is no restart_log.txt, you're doing it wrong.
    If you use a .bat file (server_nogui.bat), set your path to: path=start server_nogui.bat

    NOTE TO ANYBODY USING AN EXTERNAL SERVER:
    Remember, your server's timezone may be different. Take that into account when setting up your autostop.properties.

    Features:
    • Saves Player Data
    • Saves Chunk Data
    • Gives a custom warning at specified time before shutting down
    • Quickly shuts server down
    • Uses autostop.properties to specify what time (24-hour clock) it should shutdown at
    • Automatically creates the properties file if it doesn't exist
    • Automatically restarts server (if you enable it)
    • Multiple restart times
    Changelog (open)

    Version 0.53 (Current)
    • Fixed a few small bugs
    • Kicks all players before shutting down
    • Updated to latest RB
    Version 0.52
    • Supports multiple warn times now
    • Other small fixes
    Version 0.51
    • Fixed a small problem with the syntax of the auto-generated autostop.properties file.
    Version 0.5
    • Multiple stop/restart times
    • Added better support for Windows cmd users
    Version 0.4
    • /reboot and /restart commands
    • Permissions support for commands
    Version 0.3
    • Automatic server restarts
    • Stop/Warn time precision works with seconds now
    Version 0.2
    • Added configurable warning message and warning time
    • Attempted automatic restarts but had no luck; possible in a future release
    Version 0.1
    • Release

    FAQs (open)

    Don't use permissions? Just OP yourself.

    What is the permission? autostop.use


    Commands:
    • /reboot - Immediately saves data and restarts the server.
    • /restart - Same as reboot.
    Properties Example:
    Code:
    stoptime=12:00:00 12:05:00 12:10:00
    # Use 24-hour time. Separate times with a space. [Hour:Minute:Second]
    warntime=0:10 0:30 1:00 5:00 15:00
    # Displays warning this many min:sec before shutting down. Separate with space. [Minutes:Seconds]
    warnmsg=Shutting down...
    # Warning message to display.
    enablerestart=true
    # Enables automatic server restarts. If this is true, path must not be blank.
    path=java -jar craftbukkit.jar
    # Path to server file (including any arguments). This can also be a command if you are using crontab/screen/etc.
    # Linux screen example:
    # path=screen -dmS MinecraftServer java -jar craftbukkit.jar
    
    Suggestions and feedback appreciated! :)
     
  2. Offline

    NightStripes

    I'd really like to use this, but it won't restart after shutting down. The server shuts down at the right time, but that's it.

    Here's my server.log from a test restart:
    Code:
    2011-03-13 01:54:14 [INFO] Starting minecraft server version Beta 1.3
    2011-03-13 01:54:14 [INFO] Loading properties
    2011-03-13 01:54:14 [INFO] Starting Minecraft server on *:25565
    2011-03-13 01:54:14 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-516-gdf87bb3-b531jnks (MC: 1.3)
    2011-03-13 01:54:14 [INFO] Preparing level "world"
    2011-03-13 01:54:14 [INFO] Preparing start region
    2011-03-13 01:54:15 [INFO] Preparing spawn area: 97%
    2011-03-13 01:54:16 [INFO] ?eLoaded Essentials build 2.0.286 maintained by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo and ceulemans.
    2011-03-13 01:54:16 [INFO] GroupManager - INFO - Scheduled Data Saving is set for every 30 minutes!
    2011-03-13 01:54:16 [INFO] GroupManager version 1.0(alpha-5) is enabled!
    2011-03-13 01:54:16 [INFO] AutoStop Enabled. Linux
    2011-03-13 01:54:16 [INFO] [AutoStop] Scheduled for shutdown at time(s): 01:56:00
    2011-03-13 01:54:16 [INFO] Loading map 'org.dynmap.kzedmap.KzedMap'...
    2011-03-13 01:54:16 [INFO] Loading renderer 'org.dynmap.kzedmap.DefaultTileRenderer'...
    2011-03-13 01:54:16 [INFO] Loading renderer 'org.dynmap.kzedmap.CaveTileRenderer'...
    2011-03-13 01:54:16 [INFO] Activated world 'world' in Dynmap.
    2011-03-13 01:54:16 [INFO] Loading map 'org.dynmap.kzedmap.KzedMap'...
    2011-03-13 01:54:16 [INFO] Loading renderer 'org.dynmap.kzedmap.DefaultTileRenderer'...
    2011-03-13 01:54:16 [INFO] Dynmap WebServer started on null:8123
    2011-03-13 01:54:16 [INFO] Fake Permissions version 2.5.1 is enabled!
    2011-03-13 01:54:16 [INFO] properTime 1.8.2 initialized
    2011-03-13 01:54:16 [INFO] AutoRepair version 1.91 is enabled
    2011-03-13 01:54:16 [INFO] [iChat] Using Permissions 2.0 (2.0) for permissions
    2011-03-13 01:54:16 [INFO] iChat (v2.1) enabled
    2011-03-13 01:54:16 [INFO] HelpPages: GroupManager found.
    2011-03-13 01:54:16 [INFO] HelpPages: Version 1.2 is enabled!
    2011-03-13 01:54:16 [INFO] [BackupPlugin]  BackupPlugin version 0.8.7 is enabled!
    2011-03-13 01:54:16 [INFO] [BackupPlugin]  Permissions plugin found, using Permission config
    2011-03-13 01:54:16 [WARNING] [BackupPlugin]  Disabled MapperUnit, mapper_path invalid:
    2011-03-13 01:54:16 [INFO] [BackupPlugin]  Finished setting up a thread: BackupUnit Next run in: 125 minutes.
    2011-03-13 01:54:16 [INFO] MobileAdmin: Starting server...
    2011-03-13 01:54:16 [INFO] MobileAdminBukkit version 2.4 is enabled!
    2011-03-13 01:54:16 [INFO] BlockPaint version 1.3 is enabled!
    2011-03-13 01:54:16 [INFO] Loaded EssentialsSpawn build 2.0.286 maintained by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo and ceulemans.
    2011-03-13 01:54:16 [INFO] Done (0.175s)! For help, type "help" or "?"
    2011-03-13 01:56:00 [INFO] [AutoStop] Shutting down server.
    2011-03-13 01:56:00 [INFO] [AutoStop] Restarted server.
    
    Then my server's screen exits due to server being stopped, and I'm back at the Linux command prompt with no screens running.

    And here's my autostop.properties:
    Code:
    stoptime=01:56:00
    # Use 24-hour time. Seperate times with a space. [Hour:Minute:Second]
    warntime=0:30
    # How many seconds before shutdown/restart to show warning. Seperate times with a space.[Seconds]
    warnmsg=Server auto restart in 30 seconds...
    # Warning message to display.
    enablerestart=true
    # Enables automatic server restarts. If this is true, path must not be blank.
    path=screen -S mc java -Xincgc -Xmx1024M -jar craftbukkit.jar nogui
    # Path to server file (including any arguments). This can also be a command if you are using crontab/screen/etc.
    
    Edit: Oh, and AutoRestart.jar is in the same folder as my craftbukkit.jar, but no restart_log.txt ever gets created.
     
  3. Offline

    gamerluke

    So it does:
    /save-all
    /stop
    Then restarts the server up again?...

    This is the perfect plugin that would save me alot of time on the server...
    Note: Does it give people the "lost connection" message? Or does it make them freeze or something during the server off time.

    PS- Is this able so you can only do it manually?,
    So I don't want it to happen automatically during the day. I want it to happen only when I type /reboot or /restart
     
  4. Offline

    Steven

    Okay, I have been trying to get this working for 3 days on linux. You get frustrated with people asking the same question over and over. You say for the path="some useless thing that unless we change it, wont run." I have tried putting path=java -jar /bukkit/craftbukkit....etc, path=java -xmx1024 -xms2048 -jar /craftbukkit.....etc. I have tried path=Server Start.sh. You say in your properties example that "path=" is "The path to the server file." So what is the server file? the bukkit jar? the Server Start.sh?

    Let's just say this. My name is Steven. so naturally i have my server set up in the /steven/Bukkit folder. that is where the craftbukkit-0.0.1-SNAPSHOT.jar is. So following your "example", I should put "path= java -jar /steven/Bukkit/craftbukkit-0.0.1-SNAPSHOT.jar" however, this doesn't work. Or by "server file," do you mean the .sh file that we use to start and run the server.

    I REALLY want this to work, but just giving us the same "this is the example" isn't working. Not all of us are linux experts. Hence the reason you are the developer. Because you are the one who has the training. So maybe a specific example would help. Maybe if it wouldn't be too much trouble you can give us a little more of an explanation than "this is the example." All you would have to do is explain it once in just a little more detail, with maybe some form of case specific path file that actually works on someones server, and you would probably have 5-10 less people asking the same question over and over again.

    Just telling us that "we shouldn't be on linux if we don't know what you mean when you say the server file" seems a bit rude to me.
    I mean, all of my "server files" are in the same folder in /steven/bukkit. there is currently... 20 files in that folder. All of which, one could argue, is a server file.

    And just to help you out, here is my properties file.

    stoptime=03:00:00 09:00:00 15:00:00 21:00:00
    # Use 24-hour time. Seperate times with a space. [Hour:Minute:Second]
    warntime=0:15 0:30 1:00 2:00
    # How many seconds before shutdown/restart to show warning. Seperate times with a space.[Seconds]
    warnmsg=Shutting down server to refresh memory.
    # Warning message to display.
    enablerestart=true
    # Enables automatic server restarts. If this is true, path must not be blank.
    path=java -jar /steven/bukkit/craftbukkit-o.0.1-SNAPSHOT.jar
    # Path to server file (including any arguments). This can also be a command if you are using crontab/screen/etc.
     
    jeddeliso likes this.
  5. Offline

    Mercury

    Code:
    2011-03-13 00:00:00 [INFO] [AutoStop] Shutting down server.
    2011-03-13 00:00:00 [WARNING] [AutoStop] Exception while restarting server.
    2011-03-13 00:00:00 [SEVERE] java.io.IOException: Cannot run program "java": java.io.IOException: error=2, No such file or directory
    2011-03-13 00:00:00 [SEVERE]     at java.lang.ProcessBuilder.start(Unknown Source)
    2011-03-13 00:00:00 [SEVERE]     at java.lang.Runtime.exec(Unknown Source)
    2011-03-13 00:00:00 [SEVERE]     at java.lang.Runtime.exec(Unknown Source)
    2011-03-13 00:00:00 [SEVERE]     at java.lang.Runtime.exec(Unknown Source)
    2011-03-13 00:00:00 [SEVERE]     at net.hailxenu.serverautostop.AutoStopLoop.run(AutoStopPlugin.java:242)
    2011-03-13 00:00:00 [SEVERE]     at java.lang.Thread.run(Unknown Source)
    2011-03-13 00:00:00 [SEVERE] Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
    2011-03-13 00:00:00 [SEVERE]     at java.lang.UNIXProcess.<init>(Unknown Source)
    2011-03-13 00:00:00 [SEVERE]     at java.lang.ProcessImpl.start(Unknown Source)
    2011-03-13 00:00:00 [SEVERE]     ... 6 more
    2011-03-13 01:49:06 [INFO] Starting minecraft server version Beta 1.3

    Code:
    stoptime=00:00:00
    # Use 24-hour time. [Hour:Minute:Second]
    warntime=23:59:00
    # Displays warning message at this time. [Hour:Minute:Second]
    warnmsg=Server is Auto Rebooting in one minute!
    # Warning message to display.
    enablerestart=true
    # Enables automatic server restarts. If this is true, path must not be blank.
    path=/home/Java/jre1.6.0_23/bin/java -Xmx768M -Xms768M -d64 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=1 -XX:+AggressiveOpts -XX:UseSSE=3 -jar minecraft_server.jar nogui
    # Path to server file (including any arguments). This can also be a command if you are using crontab/screen/etc.
    
     
  6. Offline

    darkwarriors

    Code:
    stoptime=12:36:00
    # Use 24-hour time. [Hour:Minute:Second]
    warntime=12:36:00
    # Displays warning message at this time. [Hour:Minute:Second]
    warnmsg=il server verra restartato
    # Warning message to display.
    enablerestart=true
    # Enables automatic server restarts. If this is true, path must not be blank.
    path=start.sh
    # Path to server file (including any arguments). This can also be a command if you are using crontab/screen/etc.
    try in this way also with full path screen -AmdS minecraft java -Xmx1512M -Xms1512M -jar craftbukkit-0.0.1-SNAPSHOT.jar nogui stop correctly but doesnt restart itself!
     
  7. Offline

    jeddeliso

    How DO you do a full path thing, my bukkit files and server files are in /Desktop/MineCraft/Bukkit

    so how do you do it? soz cause im new to this programming files
     
  8. Offline

    THEK

    hmm. I've got it linked to my server_nogui.bat

    This is the weird part:

    The console stops and says it's restarted yet nobody get's kicked. Don't receive a warning message either.
    The server continues to run but there is no console. Only the java process is visible in Task Manager

    What on earth am I doing wrong?
     
  9. Offline

    dv90

    Change your path to:
    path=start C:\Users\Julia\Desktop\MineCraft\Bukkit\RUN.bat

    Also, your warntime syntax is outdated. It now uses Minutes:Seconds to specify how many minutes and seconds before the stoptime it should warn you. Change it to this:
    warntime=1:00
    [MERGETIME="1300034257"][/MERGETIME]
    Make sure you put:
    path=start server_nogui.bat
    [MERGETIME="1300034963"][/MERGETIME]
    Are you on a dedicated server? That entire post was useless except for the properties file.


    Mercury:
    The plugin assumes that you can use java by the normal "java" command and not have to run it from a certain location like you are doing the path. However, the path is not the problem. While shutting down, it runs AutoRestart.jar with "java -jar AutoRestart.jar", which is why it's saying that it can't run java, because in your case, you have to specify the full path.
    [MERGETIME="1300036463"][/MERGETIME]
    The screen command should work by itself but if you want to use a .sh file, make your path:
    path=sh start.sh
     
  10. Offline

    Steven

    Yes I am running it as a dedicated server from a spare computer at my house.
    So my entire post was useless except for my properties file, to which you still didn't address what I was doing wrong with it.

    Well I have tried every single example of what "path=" should be on here. Including path=sh start.sh, path=sh Server Start.sh, path=sh /home/steven/Bukkit/Server Start.sh. The .sh file that I use to run my server is "Server Start.sh"

    So case specific. I am running Ubuntu 10.10. With the version of java 1.6.0_24. My server folder (where the craftbukkit jar is) is located in /home/steven/bukkit. Is that a little more help?
    Oh, here is this again:
    stoptime=12:54:00 09:00:00 15:00:00 21:00:00
    # Use 24-hour time. Seperate times with a space. [Hour:Minute:Second]
    warntime=1:00
    # How many seconds before shutdown/restart to show warning. Seperate times with a space.[Seconds]
    warnmsg=Shutting down server to reset memory.
    # Warning message to display.
    enablerestart=true
    # Enables automatic server restarts. If this is true, path must not be blank.
    path=sh /home/steven/Bukkit/Server Start.sh <----------------------this is where the problem is. for everyone on this post
    # Path to server file (including any arguments). This can also be a command if you are using crontab/screen/etc.
     
  11. Offline

    dv90

    No none of that really helped either, other than what is quoted above. Nothing is wrong with the properties file. Does the server actually stop at all, or stop and not restart? If it doesn't stop at all, then your server's time is most likely different than what you have set in the autostop.properties file. If it does stop but doesn't restart, then it's a problem with your path/command. I have personally tested this, and had multiple other people test it on Windows and various distributions of Linux, so you probably missed something small. If you wanted to help more, you could've posted a log of your server, but seeing as how I've somehow managed to narrow it down to two things despite a lack of information from you, I don't need it anymore. If you're going to continue making unnecessarily long posts fill with completely useless information and not helping me at all, then I suggest you give up, seriously. I am 200% sure this plugin works exactly how it is supposed to on Windows and Linux. I even have a test server running on a dedicated Linux server with this plugin loaded, AND IT WORKS. So obviously the problem is with something you have done and not my doing. If you cared to follow my instructions instead of probably skimming them then you probably wouldn't be in this situation. Also, I'll say this again, if you can't get this to work after "3 days" on linux, you are doing it wrong, and you probably shouldn't be on linux in the first place. So next time you decide to post, please think about it first and post useful information instead of just random bullshit that just wastes my time. I have spent the paste week endlessly working on this plugin (when I wasn't studying for my SAT) so I know it works.
     
    gnftoxic likes this.
  12. Offline

    88zachary88

    I HAVE NO RESTART_LOG.TXT WHAT AM I DOING WRONG?
     
  13. Offline

    NightStripes

    Any idea what I'm doing wrong? I posted the logs and properties.

    AutoRestart.jar and craftbukkit.jar are in the same folder, AutoStop.jar is in my plugins folder. Server starts fine, stops fine, but does not restart.
     
  14. Offline

    dv90

    I've been trying to figure yours out, everything looks normal. I can't guarantee/support anything to do with screen though. Try it without screen or try different commands.
    [MERGETIME="1300063260"][/MERGETIME]
    I'm sorry but did you not read a single fucking post in this thread?
     
    gnftoxic likes this.
  15. Offline

    gnftoxic

    You should try "screen -dmS" instead of "screen -S" .. let me know if it works or not for you.
    screen -dmS actually runs the screen in the background, instead of attempting to run it in the console. That may be the problem.
     
  16. Offline

    Steven

    Okay, to answer the first part of your question, the server does stop. It just does not restart. I know it is a problem with my path. I haven't made myself very clear, and I apologize to you for that. I just feel like I have tried everything, even the other people's examples, and it won't start back up for me.

    For the second part, in your properties file, on your dedicated linux server, is your path the same as the example path? Because that doesn't work for me. I will try to post my server log when I am able to get to my house after work.

    This plugin is really awesome, that is why I want it to work. I am just baffled on which path I should use.
     
  17. Offline

    maxsteele

    I would love to use this plugin, but I do have some questions regarding my specific config.

    I am running Minecraft on an Ubuntu Server machine, under a screen session titled minecraft. I use server_nogui.sh to run my minecraft server with all of the java arguements manually from within the minecraft screen session. I would like my server to stop and then restart within the minecraft screen session, and still have the console showing in the minecraft screen session.

    I set up my autostop.properties file like this:
    Code:
    stoptime=22:25:00
    # Use 24-hour time. Seperate times with a space. [Hour:Minute:Second]
    warntime=0:30
    # How many seconds before shutdown/restart to show warning. Seperate times with a space.[Seconds]
    warnmsg=Shutting down server...
    # Warning message to display.
    enablerestart=true
    # Enables automatic server restarts. If this is true, path must not be blank.
    path=/home/crafty/minecraft/server_nogui.sh
    # Path to server file (including any arguments). This can also be a command if you are using crontab/screen/etc.
    After I did this, I went into my minecraft screen session, stopped the server manually, and restarted it to activate the new time. I exited my screen session and logged out of my ssh session.

    I was logged onto my Minecraft server when the time came to restart. It did not send me a warning message, but the server did stop. It also restarted, because I was able to log back into the server.

    However, when I logged onto my server via ssh and returned to the minecraft screen, I saw all of the startup messages for the server, but curiously, there was a command prompt there. My server console was nowhere to be found, but my server was running somehwere because I was able to log into it fine and play.

    Am I missing something? Am I doing something wrong? Everything looks like it should work exactly the way I set it up, but it isn't quite working as expected.
     
  18. Offline

    NightStripes

    Tried using:
    Code:
    path=screen -dmS mc java -Xincgc -Xmx1024M -jar craftbukkit.jar nogui
    
    path=screen java -Xincgc -Xmx1024M -jar craftbukkit.jar nogui
    Server stops but still no restart, same result as before.

    Used:
    Code:
    path=java -Xincgc -Xmx1024M -jar craftbukkit.jar nogui
    And server restarts.

    Something I also noticed is my warning message does not run at all.
    Code:
    warntime=0:30
    warnmsg=Server auto restart in 30 seconds...

    Unfortunately if I can't use screen I'm not sure how I would continue to run my server since its on a VPS. There's no way I can keep the SSH session open 24/7 to prevent the server from stopping.
     
  19. Offline

    d3x

    You don't really need the overhead of a plugin to do this.

    2 bash scripts:
    create the screen to run the server via:
    Code:
    screen -S server1
    run the server via:
    Code:
    ./exec
    now cronjob the reboot script by runing:
    Code:
    crontab -e
    and adding:
    Code:
    0           */3     *       *       *       /home/mcsmp/server1/reboot
    Your server will now auto reboot every 3 hours!

    You can also do auto saves this way:
    crontab:
    Code:
    15,30,45    *       *       *       *       /home/mcsmp/server1/save
    offsite backups:
    crontab:
    Code:
    15          */6     *       *       *       /home/mcsmp/server4/backup
     
  20. Offline

    dv90

    Yes, obviously. This is for people who either:
    1. Don't use linux, or
    2. Don't want to mess with that
    So how about you get out of my thread. Thanks.

    Without creating an entire wrapper for the server, I cannot make it use the same screen as before. However, once it shuts down, it will create a new screen with the same name if you configure the "path=" correctly.

    I'm not sure what you mean by "there was a command prompt there". It doesn't sound like you're doing anything wrong.

    This may sound like a stupid question but, are you sure you're using the latest version of the plugin?

    I'm clueless as well. It seems you and NightStripes (possibly a couple other people) are having similar problems. I'm sorry for sounding mean, it's just after a while this gets tiring, dealing with the same things over and over and every time I recreate somebody's situation, it always works for me. I'll talk to gnftoxic as he is much more familiar with Linux than I am. Until we get this resolved, thanks for still trying to get it to work so many times.

    As for everybody else, there's nothing wrong with the plugin. You're doing it wrong.
     
    Steven likes this.
  21. Offline

    gnftoxic

    For those of you having linux issues, I deal more with linux and I'll be testing your configurations on our test server. I will try to get a fix to you guys ASAP.
     
  22. Offline

    ctshiner

    Could you possibly implement a /kickall in the future as well? It runs correctly for me now (I think), but nobody gets kicked and they can keep on playing in the server after it's shutdown. Obviously none of their changes are saved and they can't interact with anything until they reconnect, but it's kind of confusing for the users
     
  23. Offline

    NightStripes

    Yeah. Deleted AutoStop.jar, AutoRestart.jar and the AutoStop folder before downloading fresh v0.52, running server once, stopping, starting again, and trying gnftoxic's recommendations.
     
  24. Offline

    phaed

    Does this let you restart the server, for instance, every 4 hours?
     
  25. Offline

    dv90

    Hmmm, and still no luck? That's interesting. We'll keep trying to figure it out.

    Yes but you would just use multiple stoptimes at 4 hour intervals, such as:
    stoptime=0:00 4:00 8:00 12:00 16:00 20:00

    Yeah that's because it forcefully shuts down the server instead of using the /stop command. I was planning on fixing this in the next update.
     
  26. Offline

    KrisEike

    When would this update come? I would love this plugin, but the fact that they can stay on is a bit weird, and i want it to use the /kickall coammand to get rid of the players.

    Kris
     
  27. Offline

    dv90

    Now. Just updated it to kick all the players with the message "Server is shutting down...". Also updated to latest RB. Tested on Windows 7 and Ubuntu. On Ubuntu I tested with both "path=java -jar craftbukkit.jar" and "path=screen -dmS mc java -jar craftbukkit.jar". Both stopped and restarted successfully.
     
  28. Offline

    drampelt

    If I run the server from within a screen, can I set the command to 'screen -x; java -jar.....'? I tried that and it didn't work. And I don't want it to create a new screen.
     
  29. Offline

    dv90

    The screen will be terminated when the server stops. That's unavoidable. Why does it matter if you make a new screen? Just run it in a screen then use the same name in the command, eg:
    Code:
    path=screen -dmS mcserver java -jar craftbukkit.jar
    It will close the screen it's in then open a new one with the same name.
     
  30. Offline

    sprollucy

    could u add a 10 and 5 min warning for in-game?
     
  31. Offline

    NightStripes

    Sorry to say that

    Code:
    stoptime=01:50:00
    warntime=0:30
    warnmsg=Server auto restart in 30 seconds...
    enablerestart=true
    path=screen -dmS mc java -Xincgc -Xmx1024M -jar craftbukkit.jar nogui
    
    continues to shutdown the server with no warning message and does not restart :(

    Deleted previous AutoStop files/folders
    Fresh AutoStop 0.53 download
    CraftBukkit 531
    Debian 5.0
     

Share This Page