Reboot Server after Crash Script (Please Help)

Discussion in 'Spigot Help' started by Revival3, May 18, 2016.

  1. So, I need a script that restarts the server automatically if the server crashes, so if it crashes whilst I'm away from the computer, can it automatically restart? if so, whats the start.bat script I can use. I'm on a Windows Computer
     
  2. Asynchronous task scheduling
     
  3. I don't know what to link the task scheduler to? can someone give me instructions? or a video?
     
  4. Server Folder ---> Spigot.yml ---> Restart Script: start.bat

    Spigot.yml:
    # This is the main configuration file for Spigot.
    # As you can see, there's tons to configure. Some options may impact gameplay, so use
    # with caution, and make sure you know what each option does before configuring.
    # For a reference for any variable inside this file, check out the Spigot wiki at
    # http://www.spigotmc.org/wiki/spigot-configuration/
    #
    # If you need help with the configuration or have any questions related to Spigot,
    # join us at the IRC or drop by our forums and leave a post.
    #
    # IRC: #spigot @ irc.spi.gt ( http://www.spigotmc.org/pages/irc/ )
    # Forums: http://www.spigotmc.org/

    config-version: 8
    settings:
    debug: false
    timeout-time: 60
    restart-on-crash: true
    restart-script: ./start.sh
    netty-threads: 4
    attribute:
    maxHealth:
    max: 2048.0
    movementSpeed:
    max: 2048.0
    attackDamage:
    max: 2048.0
    bungeecord: false
    late-bind: false
    sample-count: 12
    player-shuffle: 0
    filter-creative-items: true
    user-cache-size: 1000
    int-cache-limit: 1024
    moved-wrongly-threshold: 0.0625
    moved-too-quickly-threshold: 100.0
    save-user-cache-on-stop-only: false
    moved-too-quickly-multiplier: 10.0
    messages:
    restart: Server startet
    whitelist: Du darfst den Server nicht betreten!
    unknown-command: Unbekannter Befehl, benutze "/help"!
    server-full: Der Server ist voll!
    outdated-client: Bitte benutze die 1.9
    outdated-server: Bitte benutze die 1.9
    stats:
    disable-saving: false
    forced-stats: {}
    commands:
    log: true
    spam-exclusions:
    - /skill
    silent-commandblock-console: false
    replace-commands:
    - setblock
    - summon
    - testforblock
    - tellraw
    tab-complete: 0
    world-settings:
    default:
    verbose: true
    wither-spawn-sound-radius: 0
    view-distance: 10
    hanging-tick-frequency: 100
    chunks-per-tick: 650
    clear-tick-list: false
    item-despawn-rate: 6000
    merge-radius:
    item: 2.5
    exp: 3.0
    enable-zombie-pigmen-portal-spawns: true
    mob-spawn-range: 4
    anti-xray:
    enabled: true
    engine-mode: 1
    hide-blocks:
    - 14
    - 15
    - 16
    - 21
    - 48
    - 49
    - 54
    - 56
    - 73
    - 74
    - 82
    - 129
    - 130
    replace-blocks:
    - 1
    - 5
    nerf-spawner-mobs: false
    arrow-despawn-rate: 1200
    zombie-aggressive-towards-villager: true
    growth:
    cactus-modifier: 100
    cane-modifier: 100
    melon-modifier: 100
    mushroom-modifier: 100
    pumpkin-modifier: 100
    sapling-modifier: 100
    wheat-modifier: 100
    netherwart-modifier: 100
    entity-activation-range:
    animals: 32
    monsters: 32
    misc: 16
    entity-tracking-range:
    players: 48
    animals: 48
    monsters: 48
    misc: 32
    other: 64
    ticks-per:
    hopper-transfer: 8
    hopper-check: 8
    hopper-amount: 1
    random-light-updates: false
    save-structure-info: true
    max-bulk-chunks: 10
    max-entity-collisions: 8
    dragon-death-sound-radius: 0
    seed-village: 10387312
    seed-feature: 14357617
    hunger:
    walk-exhaustion: 0.2
    sprint-exhaustion: 0.8
    combat-exhaustion: 0.3
    regen-exhaustion: 3.0
    max-tnt-per-tick: 100
    max-tick-time:
    tile: 50
    entity: 50
     
  5. In spigot.yml you can do that...