mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
Implemented server "say" command. Closes #4.
This commit is contained in:
parent
797e42349a
commit
c2a529535b
11
msm
11
msm
@ -1625,6 +1625,17 @@ main() {
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
say)
|
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)
|
time)
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user