mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
Added "whitelist on" and "whitelist off" server commands.
This commit is contained in:
parent
391f67408f
commit
71babd7dc5
27
msm
27
msm
@ -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)
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user