dotfiles/.local/bin/mccmd
2022-02-26 22:34:40 +01:00

12 lines
239 B
Bash
Executable file

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