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.
allowSleeping
dsoda
Владелец
Adds a game rule to completely disable sleeping.