Skip to content

Instantly share code, notes, and snippets.

@inertia186
Created February 17, 2013 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inertia186/4973214 to your computer and use it in GitHub Desktop.
Save inertia186/4973214 to your computer and use it in GitHub Desktop.
[Minecraft, SMP] Clears any unauthorized items from the inventories of all survival mode players.
TARGET="@a[m=0]"
LIST="7 19 90 119 137 383"
for item in $LIST; do
cmd="clear $TARGET $item"
bash -c "screen -p 0 -S minecraft -X eval 'stuff \"$cmd\"\015'"
echo $cmd
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment