This file contains hidden or 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 |
This file contains hidden or 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
| <?php | |
| define("COMPARATOR_VERSION", "0.1"); | |
| ini_set("memory_limit", "512M"); | |
| $node1 = json_decode(@file_get_contents($argv[1]), true); | |
| if($node1 == ""){ | |
| echo "Provide a valid json file produced by the Extractor".PHP_EOL; | |
| exit(1); | |
| } | |
| $node2 = json_decode(@file_get_contents($argv[2]), true); |
NewerOlder