dotfiles/.local/bin/mccmd
2021-02-04 17:44:55 +01:00

12 lines
240 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