Added "whitelist on" and "whitelist off" server commands.

This commit is contained in:
Marcus Whybrow 2012-05-29 05:06:09 +01:00
parent 391f67408f
commit 71babd7dc5

27
msm
View File

@ -1565,6 +1565,33 @@ main() {
fi fi
;; ;;
whitelist|wl) whitelist|wl)
case "$3" in
on)
if server_is_running $id; then
server_eval $id "whitelist on"
echo "Whitelist enabled"
else
echo "Server was not running."
fi
;;
off)
if server_is_running $id; then
server_eval $id "whitelist off"
echo "Whitelist disabled"
else
echo "Server was not running."
fi
;;
add)
;;
remove)
;;
list)
;;
*)
echo "Invalid command."
;;
esac
;; ;;
blacklist|bl) blacklist|bl)
;; ;;