Description
Hypnos is a server-side mod for Fabric. Mod is still loaded client-side so you can use while opening your server with "Open to LAN"
When a player goes into bed, it will check if an amount of player are sleeping. If enough players are sleeping, night will be skipped.
Its requirement is Fabric-Api
Config
Values
playerPercentageis the percentage of player that need to sleepnotEnoughPlayerMessageis the message displayed when a player enter his bed but not enough players are sleepingnightSkipMessageis the message used when skipping nightenableWakeUpenable or disable broadcasting ofwakeUpMessagewakeUpMessageis the message displayed when a player leaves his bedignoreSleepDuringDayenabling it will ignore when player enter a bed during day (true per default)
Message arguments
In messages, you can use different variables
{player}: player entering his bed{sleeping}: amount of players sleeping{required}: number of required player sleeping to skip night
Each message can have only specific arguments
-
notEnoughPlayerMessage:{player},{sleeping},{required}nightSkipMessage:{sleeping},{required}wakeUpMessage:{player},{sleeping},{required}
You can also use minecraft color tags as seen here


