mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
Added "whitelist remove" command.
This commit is contained in:
parent
01739cc5d4
commit
bf76cae5f0
10
msm
10
msm
@ -1598,6 +1598,16 @@ main() {
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
remove)
|
remove)
|
||||||
|
if [ -z "$4" ]; then
|
||||||
|
echo "Invalid command."
|
||||||
|
else
|
||||||
|
if server_is_running $id; then
|
||||||
|
server_eval $id "whitelist remove $4"
|
||||||
|
echo "Removed \"$4\" from the whitelist."
|
||||||
|
else
|
||||||
|
echo "Server \"${server_name[$id]}\" is not running."
|
||||||
|
fi
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
list)
|
list)
|
||||||
if server_is_running $id; then
|
if server_is_running $id; then
|
||||||
|
Loading…
Reference in New Issue
Block a user