dotfiles/.local/bin/mccmd
2023-02-05 23:49:47 +01:00

14 lines
266 B
Bash
Executable file

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