dotfiles/.local/bin/mccmd
2021-10-21 18:27:25 +02:00

12 lines
238 B
Bash
Executable file

#!/bin/bash
cat | while read line
do
if [[ "$line" =~ ^/ ]]
then
echo "$line" > /run/minecraft-server.sock
else
echo "say $line" > /run/minecraft-server.sock
# echo "dynmap sendtoweb $line" > /run/minecraft-server.stdin
fi
done