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
MC="/Users/steve/Minecraft" | |
for player in `cat $MC/ops.txt` | |
do | |
query=`$MC/scripts/Dinnerbone-mcstatus-a24e563/cli.py localhost | grep -i $player | wc -l` | |
query=$(sed -e 's/^[[:space:]]*//' <<<"$query") | |
if [ $query -eq 0 ]; then | |
echo Skipping $player, not logged in. |
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="difficulty 0" | |
bash -c "screen -p 0 -S minecraft -X eval 'stuff \"$cmd\"\015'" | |
sleep 1 # This is required so that the commands happen in different game ticks. | |
cmd="difficulty 2" | |
bash -c "screen -p 0 -S minecraft -X eval 'stuff \"$cmd\"\015'" |
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
TARGET="@a[m=0]" | |
LIST="7 19 90 119 137 383" | |
for item in $LIST; do | |
cmd="clear $TARGET $item" | |
bash -c "screen -p 0 -S minecraft -X eval 'stuff \"$cmd\"\015'" | |
echo $cmd | |
done |
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
#!/bin/bash | |
MC=/Users/steve/Minecraft/ | |
echo \#\#\# | |
echo \#\#\# It is normal to see a \"NameError: global name 'socket' is not defined\" here if the server really is down. | |
echo \#\#\# | |
query=`$MC/scripts/Dinnerbone-mcstatus-a24e563/cli.py -t 1 -r 0 localhost | wc -l` | |
query=$(sed -e 's/^[[:space:]]*//' <<<"$query") |
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
#!/bin/bash | |
MC="/Users/steve/Minecraft" | |
cmd="say Restarting in 5 minutes." | |
echo $cmd | |
bash -c "screen -p 0 -S minecraft -X eval 'stuff \"$cmd\"\015'" | |
sleep 60 | |
cmd="say Restarting in 4 minutes." |
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'" |
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
Gem::Specification.new do |s| | |
s.name = 'mc-slap' | |
s.version = '0.0.1' | |
s.platform = Gem::Platform::RUBY | |
s.author = 'Anthony Martin' | |
s.email = 'mc-slap@martin-studio.com' | |
s.summary = 'Minecraft Slap' | |
s.description = 'Minecraft themed slap script.' | |
s.files = ['mc-slap.rb'] |
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
70.71.153.43 | |
111.197.56.176 | |
111.197.63.35 | |
114.250.244.70 | |
203.171.233.243 | |
221.219.250.74 | |
65.125.155.90 | |
85.227.160.171 | |
204.14.77.46 | |
174.134.89.68 |
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
#!/bin/bash | |
MC="/Users/steve/Minecraft" | |
RUBY="/Users/steve/.rvm/rubies/ruby-1.9.3-p374/bin/ruby" | |
if [ -z "$1" ]; then | |
echo $0 \[target\] | |
fi | |
target=$1 |
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
#!/bin/bash | |
MC="/Users/steve/Minecraft" | |
LOG="$MC/server.log" | |
MESSAGE="We are not falling for it. This is not the server you are looking for. Move along." | |
for player in `tail -50 $LOG | grep -i "i'm\|im\|i am" | grep -i from | grep -i planet | grep -i minecraft | cut -f 4 -d " " | cut -f 2 -d \< | cut -f 1 -d \> | sort | uniq` | |
do | |
if [ -n "`tail -100000 $LOG | grep "Kicked $player from the game: '$MESSAGE'"`" ]; then |
OlderNewer