Implemented server "say" command. Closes #4.

This commit is contained in:
Marcus Whybrow 2012-05-30 15:36:52 +01:00
parent 797e42349a
commit c2a529535b

11
msm
View File

@ -1625,6 +1625,17 @@ main() {
fi
;;
say)
if [ -z "$3" ]; then
echo "Invalid command."
else
if server_is_running $id; then
echo $3
server_eval $id "say $3"
echo "Message sent to players."
else
echo "Server \"${server_name[$id]}\" is not running."
fi
fi
;;
time)
;;