A small simple mod which disables the sleep functionality.
You can configure if you want the bed to still set the spawn or not.
Includes configurable messages for both denied sleep & set spawnpoint.
Possible to configure which time of day players should be allowed to set spawn.
Can also be used to set spawn during the day and sleep through the night.