Inactive [ADMN] AutoShutdown 2.2 - Stop/Restart/Shut down at the same time every day [1248]

Discussion in 'Inactive/Unsupported Plugins' started by matjam, Jul 13, 2011.

  1. Offline


    AutoShutdown: Automatically Shutdown/Stop your server at a set time every day.
    Version: v2.2

    I have moved the information for this plugin to BukkitDev.

    This thread will still be used to discuss any possible future changes, and to provide some examples.

    Example config.yml
    config.yml (open)
    #A list of times in 24h format separated by comma to schedule a shutdown for.
    shutdowntimes: 2:00,14:00
    # Reason to give for kicking user on shutdown.
    kickreason: Scheduled Shutdown.
    # Seconds before the shutdown to broadcast a warning message.
    warntimes: 900,600,300,240,180,120,60,45,30,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1
    # When doing an immediate shutdown, how many seconds grace should be given.
    gracetime: 30
    # Should we bother kicking users? (recommended)
    kickonshutdown: true

    Example restart scripts
    Windows (open)
    "c:\Program Files\Java\jdk1.6.0_23\bin\java.exe" -Xms1024M -Xmx2048M -jar craftbukkit-0.0.1-SNAPSHOT.jar
    goto begin
    named as run.bat, run from the cmd.exe prompt. Set ms and mx size to what you feel is suitable.

    Path to the java.exe will need to be set.
    Unix (open)
    while true
            echo starting minecraft server ...
            java -Xms1024M -Xmx4096M -jar craftbukkit.jar nogui
            echo sleeping ...
            # Do backups or something useful here
            sleep 5
    named as, run from a screen session.
  2. Offline


    does it automaticly restart the server after?
    im trying to find a way at mo to assign a screen a name (as screen -dr "random number" is not easy to use in a crontab)
    if it does then does it reload it into the same screen it was running in?
    i plan to have our server shutdown at 0500
    then at 0505 rsync the server into another folder (to save any changes to a back up)
    then restart the server
    just need to find how to give a screen a name..
    Quick to google!!!!
    that was an easy search
    screen -S name
    screen -dr name to get back
    ^just incase others need that to (im sure most server admins run on ubuntu or other distro)
  3. Offline


    I run the server inside screen using a script. After the server exits, you can do a backup, its the safest way. The loop in the script makes the server start again.
  4. Offline


    Recommendation/Question: I like to turn my computer off every night to give it some down time and as of right now the restart script I have edited into my start batch will not allow the server to ever be shut off via the stop command while AutoShutdown is running since it uses the stop command to shut ther server down (which I need the restart edit for maximum uptime during the day). Is there a way to make the plugin not restart when the stop command is manually entered into the running batch or add a shutdown command that entirely turns off the server? Or is there a way to edit the batch file to where there is a certain admin controlled condition where I can manually shut it down without the script restarting. I was messing with the code for my start script, but I have no clue how to either add a custom command to bukkit that is an alternate way to stop the server or add a work around where AutoShutdown will not restart the server when I enter the stop command.

    Edit: Also having an issue with the permissions line not giving access ingame to the commands, using PermissionsBukkit. Also a reload option that can be set to a schedule would help keep the server fresh until a full restart.

  5. Offline


    Would be great to have custom text in the config.
    Since the last update the auto-kick function is not working.
  6. Offline


    I have very limited access to an actual server that I would like to put a Minecraft server on, and so other than my initial installing of the server and this plugin I will have to rely on this plugin for restarting my Minecraft server. Could I update my Minecraft jar when needed during one of these restarts and would I never for any reason need to manually turn on the Minecraft server?

    How long do these restarts last? Is it just where it turns off and then instantly turns back on? If not, what would happen if I kicked everyone about 15 minutes before it restarts, then before those 15 minutes I swapped out the jar files and whatnot while it was still running?
  7. Offline


    Did I do something wrong, or why that shutdowntimes: doesn't stay as setted.. I setted it to 21:00, and after I reastarted server and checked if it works, it didn't stop @ 20:00 and whe I checked config.yml, that shutdowntimes: was changed to 1260..?
  8. Offline


    Hmmmm strange...
    It doesn't say "Server shutting down in ..." anymore. It just shutsdown at the time that I set it and no one every notices. This is very annoying cuz players are in the middle of something and the server just shutsdown. Please help. In the CONSOLE it shows up that its going to turn off but in-game it doesn't. Am I missing something? Plz respond ASAP
  9. Offline


    Is it possible to switch between message types, shutdown and say like restart?
  10. Offline


    care to update to 1.0.0 or 1.9
  11. Offline


    I've had the same problem. And the fix i've found ( using batch commands ) is using the choice command. After you stop ther server, it will prompt you with the question whether you want to restart or not. After 10 seconds it will default to yes.

    Here's my startup script:

    @echo off
    "C:\Program Files\Java\jre7\bin\java.exe" -XX:+DisableExplicitGC -XX:MaxGCPauseMillis=500 -XX:+UseParNewGC -Xmx12000M -Xincgc -jar craftbukkit.jar
    CHOICE /C:YN /N /T 10 /D Y /M "Do you want to restart (Y/N)"
  12. Offline


    Im runing my server on debian, and I want it to restart. NOT to shut down, how do I do that so it automatic.
  13. Offline


    I'm using the plugin on my linux server... it worked on bukkit 1.0.1... now i have a problem with the actual version.

    I've installed "myWorld" and created a netherworld... after each restart with your plugin, the nether world switches to a normal world and generates normalworld chunks... can you fix that?
  14. Offline

    Don Redhorse

    take a look at the linux scripts on top..
    I doubt it has anything todoy with this plugin... you should ask the question in the myworld thread
  15. Offline


    Hi, very nice plugin :)
    Maybe you could add the ability to choose different shutdown times for different days. Our server isnĀ“t 24/7, he is off during night, and we would like it to set shutdown time for weekend at 02:00 am and for the other days to 01.00 am.
    I hope this is possible ;), would be great.
  16. Offline


    Update to work with newest bukkit please.
  17. Offline

    Don Redhorse

    developer was last seen on January 5th... this one is dead... TheMonkeyPack on has this feature
  18. Offline


    Thanks bro. Is there any way to pick and choose what you use with TheMonkeyPack? I am trying to keep my server as close to vanilla as possible with only permissions, my occasional restart, and a protection plugin for those pesky friends that think it is funny to greif your things.
  19. Offline

    Don Redhorse

    yes... you can enable / disable whatever you like... wait for an updated version though I think I found a bug that when you don't have the config file the plugin won't work... bukkit changed a lot of stuff without telling anybody.

    fixed the issue...

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


  21. Offline


    I haven't had an issue with it being out of date and I am running 1.2.3 R.02. Set to reset 4 times a day and it does just that.

    Edit: someone posted an updated link in the bukkit dev comments, that is where I got my version.
  22. Offline


    doesnt work for me at 1.2.5
  23. Offline


    Slight problem, I didn't recieve any folders when I reloaded my server, just the jar.
    Any help?
  24. Offline

    Don Redhorse

    well afaik this one here is DEAD... either you get something from dev.bukkit or you try a different plugin like TheMonkeyPack
  25. Offline


  26. Offline


    Remove this plugin from the Database or Update it, you are well out of date.
  27. Offline


    Im not getting the config file
  28. Offline

    Don Redhorse

    please read the 4 posts above your post Alvin1111
  29. Offline


    Will this plugin be updated for Minecraft 1.4, does it need to be updated for 1.4?
  30. Offline

    Don Redhorse

    the original developer was last online end of march..

    probably it will just work... if not you can try TheMonkeyPack which also contains a function like that
  31. Offline


    I've updated for 1.4.2.

    I also fixed a couple of outstanding issues:

    * Plugin saves world data before it unloads the world.
    * It should now handles a single shutdown time without using a comma to work around the problem.

    Would appreciate any feedback.

    So, do we need this built for 1.3.2? Or with the dev builds are people heading to 1.4.2.

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

Share This Page