Created
February 18, 2013 06:27
-
-
Save inertia186/4975445 to your computer and use it in GitHub Desktop.
[Minecraft, SMP] This script will announce that a player will be banned for a particular reason, then bans them after 15 seconds.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmd="say $1 will be banned in 15 seconds. Reason: $2" | |
bash -c "screen -p 0 -S minecraft -X eval 'stuff \"$cmd\"\015'" | |
sleep 15 | |
cmd="ban $1 $2" | |
bash -c "screen -p 0 -S minecraft -X eval 'stuff \"$cmd\"\015'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment