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

    Don Redhorse

    nice to see you back matjam
  3. Offline


    while true
        echo "starting minecraft server..."
        java -Xmx1536M -Xms1536M -jar craftbukkit.jar nogui
        echo "sleeping..."
        # Do backups or something useful here
        sleep 5
    I can't get this .sh file to run correctly on CentOS 6.
    I get this error:
    : command not found line 13: syntax error near unexpected token 'done' line 13: 'done'

Share This Page