header
Hypnos avatar

Hypnos

Install
item image
  • screenshot thumbnail

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

  • playerPercentage is the percentage of player that need to sleep
  • notEnoughPlayerMessage is the message displayed when a player enter his bed but not enough players are sleeping
  • nightSkipMessage is the message used when skipping night
  • enableWakeUp enable or disable broadcasting of wakeUpMessage
  • wakeUpMessage is the message displayed when a player leaves his bed
  • ignoreSleepDuringDay enabling 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