Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- START_SERVER='java -jar craftbukkit.jar'
- # Clean up from last run
- rm STOP_SERVER
- # clear retval
- echo
- while true; do
- # Pre-execution commands
- rm -r world/
- cp -R world_mod2 world
- $START_SERVER
- # Escape clause
- if [ -a STOP_SERVER ]; then
- exit 1
- fi
- # Pre-execution commands
- rm -r world/
- cp -R world_mod1 world
- $START_SERVER
- # Escape clause
- if [ -a STOP_SERVER ]; then
- exit 1
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement