Pull CraftBukkit #1028 by @EdGruberman to address a few issues with plugins and beds.