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
|
2021-02-04 17:44:55 +01:00
|
|
|
# echo "dynmap sendtoweb $line" > /run/minecraft-server.stdin
|
|
|
|
fi
|
|
|
|
done
|