Bukkit/CraftBukkit — pull request #953 by JadenKorr (2012-12-12 20:49:48+00:00)
Title: Implement Wake and Sleep API. Fixes BUKKIT-3155

After a few request on #bukkitdev IRC channel have been made I've added a wake and sleep API.
Allow the plugin developer to wake up a player and put them into bed(with or without overriding the distance check).

Ticket: https://bukkit.atlassian.net/browse/BUKKIT-3155
Bukkit PR: Bukkit/Bukkit#732
Test plugin: https://github.com/JadenKorr/SleepWakeTestPlugin