Permalink
Browse files

Merge pull request #32 from oops-ur-dead/master

Whitelist Commands
  • Loading branch information...
2 parents 7df5b64 + 9b9f9c1 commit 2a6426eaeea00d9b19677434ff6cdfb671a67e63 @Ahtenus committed Jan 20, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 minecraft
View
@@ -359,6 +359,14 @@ case "$1" in
to_ram
mc_start
;;
+ whitelist-reload)
+ # Reloads the whitelist
+ as_user "screen -p 0 -S $SCREEN -X eval 'stuff \"whitelist reload\"\015'"
+ ;;
+ whitelist-add)
+ # Adds a player to the whitelist
+ as_user "screen -p 0 -S $SCREEN -X eval 'stuff \"whitelist add $2\"\015'"
+ ;;
backup)
# Backups world
as_user "screen -p 0 -S $SCREEN -X eval 'stuff \"say Backing up world.\"\015'"
@@ -462,6 +470,8 @@ case "$1" in
echo "worlds - shows a list of available worlds"
echo "ramdisk WORLD - toggles ramdisk configuration for WORLD"
echo "overviewer WORLD - create a map of the WORLD with Minecraft-Overviewer"
+ echo "whitelist-add NAME - adds the specified player to the server whitelist"
+ echo "whitelist-reload - reloads the whitelist"
;;
*)
echo "No such command see $0 help"

0 comments on commit 2a6426e

Please sign in to comment.