A simple server-side mod that adds a game rule, allowSleeping, which enables/disables sleeping.
Right-clicking on a bed with sleeping disabled will simply set a player's spawn point without initiating the sleeping animation.
No gallery available for this project.