Advertisement
riking

Untitled

May 2nd, 2013
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. START_SERVER='java -jar craftbukkit.jar'
  3.  
  4. # Clean up from last run
  5. rm STOP_SERVER
  6. # clear retval
  7. echo
  8. while true; do
  9.     # Pre-execution commands
  10.     rm -r world/
  11.     cp -R world_mod2 world
  12.     $START_SERVER
  13.     # Escape clause
  14.     if [ -a STOP_SERVER ]; then
  15.         exit 1
  16.     fi
  17.     # Pre-execution commands
  18.     rm -r world/
  19.     cp -R world_mod1 world
  20.     $START_SERVER
  21.     # Escape clause
  22.     if [ -a STOP_SERVER ]; then
  23.         exit 1
  24.     fi
  25. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement