Because I can't access my old account I had to start this one. I will be updating the plugin for all the versions of minecraft that have come out while I've been gone.
For versions of minecraft older than 1.12 download the appropriate version of SPS for your MC version here... http://dev.bukkit.org/bukkit-plugins/singleplayersleep/
First off, I watch several Hermitcrafters, and after seeing them have issues with their Single Player Sleep command block, rain messes it up. I decided to make this simple plugin.
When a player right clicks on a bed, the plugin broadcasts " is sleeping [CANCEL]", if no one clicks on Cancel, then after 10 seconds the plugin will advance the time ahead to the next morning. thus the day and difficulty is not affected. The plugin also checks for storms, and if the player has the permissions, it will clear them. There is also a permission for the Cancel command.
sps.hermits - Allows player to sleep when other players are online. default=true
sps.downfall - Allows player to clear downfall. default=true
sps.thunder - Allows player to clear thunderstorms. default=true
sps.cancel - Allows player to cancel SPS of other players. default=true
sps.command - Allows player to use the /sleep command, instead of a bed. default=OP
sps.* - Admin, grants all sps permissions. default=false
If the player is the only one player online, then the bed functions as normal, since the sleep function works before the 10 second delay.
#change to false to stop auto-update-check
#color of [CANCEL]
#set to true to broadcast " canceled sleep."
#set to false not to broadcast that msg.
#set to true before sending a log about and issue,
#logs trace data required to pinpoint where errors are.
#available languages (English US) en_US, (LOLCat) lol_US, (Dutch) nl_NL, (Francais) fr_FR, (Deutsch) de_DE
This plugin is open source; you can view the source code on github. Feel free to open issues there or submit pull requests.