Back to all plugins
Minecraft plugin

RealmSleep

Sleep Quota and Day/Night Lengths

RealmSleep is a Paper plugin that sets a configurable sleep percentage and lets you change how long day and night last, independently of each other and per world. Only worlds you explicitly enable are changed; every other world keeps vanilla behavior.

On the Realm of Salt it is enabled for the Pylon Wars world pylon-world: half of the players need to sleep, days last 20 minutes and nights 5 minutes.

Key Features

  • Per-world sleep percentage for skipping the night
  • Independent day and night lengths in minutes
  • Only explicitly enabled worlds are touched, all others stay vanilla
  • Action bar progress that shows real bed sleepers only, at night, and clears once everyone leaves the bed
  • Optional chat messages when the night is skipped or the weather is cleared
  • Rainy-day weather votes: clicking a bed while it rains during the day casts a vote to clear the storm
  • Optional /sleep vote as a fallback for players who cannot reach a bed
  • Optional switch to disable natural phantom spawning in enabled worlds
  • Change percentages and lengths in-game without editing files

How It Works

  • Sleep in a bed at night; once the configured share of eligible players sleeps, the night is skipped
  • The action bar shows how many players are sleeping and how many are needed
  • When it rains during the day, clicking a bed counts as a weather vote and you stay standing
  • Reaching the normal sleep threshold with weather votes clears the storm
  • With voting enabled, /sleep casts or withdraws a night-skip vote; bed sleepers and votes are counted together against voting.percentage
  • Natural bed sleeping still uses the world's sleep-percentage

Commands

  • /sleep - Cast or withdraw your night-skip vote
  • /rsleep info [world] - Show the settings of a world
  • /rsleep status [world] - Show how many players are sleeping
  • /rsleep percent <0-100> [world] - Set the sleep percentage
  • /rsleep day <minutes> [world] - Set the day length
  • /rsleep night <minutes> [world] - Set the night length
  • /rsleep enable <true|false> [world] - Enable or disable RealmSleep in a world
  • /rsleep reload - Reload the configuration

/rsleep is an alias for /realmsleep. Players can leave out the world to use their current world.

Permissions

  • realmsleep.vote - Use /sleep to vote for skipping the night (default: everyone)
  • realmsleep.admin - Use /realmsleep to manage the settings (default: op)

Configuration

Worlds inherit the defaults block and can override every value. A Minecraft day has 12000 daylight ticks and 12000 night ticks, which RealmSleep stretches or shortens to the configured minutes.

defaults:
  enabled: false
  sleep-percentage: 100
  day-minutes: 10.0
  night-minutes: 10.0

worlds:
  pylon-world:
    enabled: true
    sleep-percentage: 50
    day-minutes: 20.0
    night-minutes: 5.0

sleep-feedback:
  actionbar: true

phantoms:
  disable: false

messages:
  night-skipped: true
  weather-cleared: true

weather:
  allow-daytime-bed: true
  clear-on-skip: true

voting:
  enabled: true
  percentage: 50

Good to Know

  • The native sleep gamerule stays in the world after the plugin is removed
  • phantoms.disable sets the spawnPhantoms gamerule in enabled worlds; it only stops new spawns and persists until you revert it
  • An existing config.yml is never overwritten on update, so copy new sections over manually and run /rsleep reload
  • Other plugins can still change time and weather; RealmSleep does not take ownership of those changes
  • Player-facing sleep and vote messages are in German, admin command output is in English

Documentation

For build and install instructions, see the documentation.