Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- OPSTXT=/home/minecraft/McMyAdmin2/Minecraft/ops.txt
- AUTHOPSTXT=/home/minecraft/McMyAdmin2/Minecraft/authorizedops.txt
- for line in $(awk {'print'} $OPSTXT) ; do
- if ! grep -Fxq "$line" $AUTHOPSTXT
- then
- echo "$line not found in Auth"
- screen -S McMyAdmin -p 0 -X stuff "$(printf "say Unauthorized Op $line Detected \r\n")"
- screen -S McMyAdmin -p 0 -X stuff "$(printf "deop $line \r\n")"
- screen -S McMyAdmin -p 0 -X stuff "$(printf "say $line Deopped \r\n")"
- fi
- done
Add Comment
Please, Sign In to add comment