dotfiles/.local/bin/mccmd
2022-08-20 20:23:03 +02:00

12 lines
255 B
Bash
Executable file

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