dotfiles/.local/bin/mccmd

13 lines
239 B
Text
Raw Normal View History

2021-02-04 17:44:55 +01:00
#!/bin/bash
cat | while read line
do
if [[ "$line" =~ ^/ ]]
then
2021-12-11 17:25:35 +01:00
echo "$line" > /run/minecraft-server.stdin
2021-02-04 17:44:55 +01:00
else
2021-12-11 17:25:35 +01:00
echo "say $line" > /run/minecraft-server.stdin
2022-02-26 22:34:40 +01:00
echo "dynmap sendtoweb $line" > /run/minecraft-server.stdin
2021-02-04 17:44:55 +01:00
fi
done