From 71babd7dc5722bf3b405a42ac9974335bbb52415 Mon Sep 17 00:00:00 2001 From: Marcus Whybrow Date: Tue, 29 May 2012 05:06:09 +0100 Subject: [PATCH] Added "whitelist on" and "whitelist off" server commands. --- msm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/msm b/msm index ae64f9e..d969fa2 100755 --- a/msm +++ b/msm @@ -1565,6 +1565,33 @@ main() { fi ;; 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) ;;